|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。- z/ f. s% x# q3 H, z4 t" K$ H9 @
0xa10002 first controller4 W6 B! X1 k u/ l" h$ c; F- Y8 O
0xa10004 second controller
: a& d) }' A1 u2 I) @; y9 _: H+ f
! P$ \9 i r! b- @ `" h2 X0 B0xA10003/0xA10005/0xA10007 are the DATA ports, 3 n$ D% V2 W0 q k# D
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D 9 }$ S: _& S5 t0 W: a, P
are the CTRL ports, which set the input/ouput
4 w7 W X, N) g% t4 q5 } @7 H: Y- A4 T" F' F: ?- f
' E6 `3 e0 a. K; n想讓subroutine在任何時刻都有效,: {# z2 Q0 o1 I4 g
就必須找global section。% a6 R7 t' p4 ] U
控制器是其中一個,( w; y2 s, w5 Y, K
除了控制器當然還有其他可寫入的section存在。 |
|