|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。
9 A' U8 m5 G& Y2 T4 V; z4 i; c( u0xa10002 first controller$ {6 w& y" T. F; u/ }* Y+ e6 |
0xa10004 second controller- o/ t0 C! q9 F6 S
; v/ Q' Z# r* {- i; x) d0 p0xA10003/0xA10005/0xA10007 are the DATA ports, 5 K/ y+ y# J! K2 Y. F
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D
- y( c, A* u3 r" f7 H' Eare the CTRL ports, which set the input/ouput
0 [2 w) @' F# B' k. A v- Z* [
9 y; s9 _. r/ x) @9 i; a# B1 G- C3 Q, l- c/ u
想讓subroutine在任何時刻都有效,
; \: X- K# ^$ S就必須找global section。3 F7 M- y9 |/ a- @, d/ Q- D
控制器是其中一個,
# i7 s1 G$ _+ @. R4 T t, p' Y* j除了控制器當然還有其他可寫入的section存在。 |
|