|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。( T5 _) ~: z+ L6 A* [
0xa10002 first controller
! C6 p( B1 A9 @& t, N: H- ~: Z0xa10004 second controller" a1 L k' a% `, s( q
6 j+ ]; B _# R" Y I: K
0xA10003/0xA10005/0xA10007 are the DATA ports,
/ w2 ~- {* u: l4 o qwhich read from/write to joypad 0xA10009/0xA1000B/0xA1000D
6 n! m& @6 M3 j7 U4 W- T- S& Nare the CTRL ports, which set the input/ouput( @2 z# e- e5 [7 u( `6 Z" Q2 x
2 [2 ?! ]; O' [9 J4 L7 U
) L, ~" o F k8 E/ `- n想讓subroutine在任何時刻都有效,0 y( W4 c3 f% R4 Y( w
就必須找global section。1 I1 w( I0 V9 n, [0 _0 u& C
控制器是其中一個,
5 x, a8 }+ A8 K) b5 p# p& ^+ }9 q除了控制器當然還有其他可寫入的section存在。 |
|