|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。
2 Q+ A% R h/ \& P+ A; q0xa10002 first controller
/ ]9 k$ M/ S/ G; e7 u5 @0xa10004 second controller4 _. C+ K" ?0 m" f
' |0 p& ?; } `/ P# l% q0xA10003/0xA10005/0xA10007 are the DATA ports, , l2 _6 }4 G+ x# n' b
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D
9 Q9 b% U& A# ?; v* s7 V! Z+ ^1 A4 yare the CTRL ports, which set the input/ouput u; w1 e7 N* L+ s$ a6 @" |
# z I$ a% j! m5 @
. g- Z1 f( F+ U3 I- X5 P5 d) Z" N想讓subroutine在任何時刻都有效,
: J3 Z& D9 [, \, ^就必須找global section。4 u0 I( Y8 e8 \1 Q
控制器是其中一個,% n# \$ X, f! e+ u
除了控制器當然還有其他可寫入的section存在。 |
|