|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。* D8 n1 q3 V6 n+ l
0xa10002 first controller& c9 ]& s, n# A( }7 V5 O# I
0xa10004 second controller2 m. e2 i4 F" [5 F1 [
$ h, D k- y7 |; n; |+ e9 T0xA10003/0xA10005/0xA10007 are the DATA ports,
) H& L7 {, ?4 g& ?. j" Gwhich read from/write to joypad 0xA10009/0xA1000B/0xA1000D
+ Y; m& q6 |6 q' T3 c: Iare the CTRL ports, which set the input/ouput
( ~+ Y8 I" g5 W! {0 p$ x+ q2 c0 V# X; J% j: Y
- c0 l$ f1 p* Y0 ^. @+ ^" l' n% \想讓subroutine在任何時刻都有效,1 ?, S+ Y1 J% |# ?
就必須找global section。
# w% |3 ` k* ^1 A! r" d控制器是其中一個,) P9 c0 A/ }0 c; O _: [& R
除了控制器當然還有其他可寫入的section存在。 |
|