|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。- V/ M1 ] {9 K; T
0xa10002 first controller. j1 s, N9 ?, @
0xa10004 second controller5 x# r$ a* \! i0 z1 H# y
3 ~ ^' ?) M6 B+ E- |) D) t+ k: l+ B
0xA10003/0xA10005/0xA10007 are the DATA ports, : p9 T0 A. w1 _% K, t
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D 3 {. L% w; D2 N0 s2 u
are the CTRL ports, which set the input/ouput
$ u' g) y7 A, I
4 V L" T/ X" U/ s6 X- [$ a; p( g
d- V* z8 |' g6 U想讓subroutine在任何時刻都有效,
( P7 [, j! ?# E1 D就必須找global section。1 N" g7 K( D- b, `' q5 j* x4 r
控制器是其中一個,
]; f! h* l' r% e9 u除了控制器當然還有其他可寫入的section存在。 |
|