|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。
/ P. x8 { o( q" h% w- C3 T- Q) D0xa10002 first controller+ d' G$ E) E. C1 I8 ?9 \5 p! m
0xa10004 second controller
' M7 B, ]/ r- ?% F0 d/ |
0 K" f& q6 i& x- D# N( C+ N0xA10003/0xA10005/0xA10007 are the DATA ports, 3 h" s2 c7 J% L/ t! o/ {7 A$ r
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D
p' {5 A9 L tare the CTRL ports, which set the input/ouput: S7 q! q, S9 y) O4 S
3 O6 ?% P+ Z5 H% F
; Y5 a4 m4 l3 A7 G& q想讓subroutine在任何時刻都有效,
" H1 y& Y2 s' c O: |% L就必須找global section。
( A3 F0 j/ h ^: {& e* }控制器是其中一個,
+ ]$ D6 o; J4 ]- j! N; k除了控制器當然還有其他可寫入的section存在。 |
|