|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。 K8 E. v) f+ t. _
0xa10002 first controller
+ ]) D, c j% `' c0 ?" a D: N0xa10004 second controller
+ s, ? b4 h+ h0 H; S, L
* |% z# q: C `! q, W! f0xA10003/0xA10005/0xA10007 are the DATA ports,
, W/ p+ p! O# U, u/ C' Y$ iwhich read from/write to joypad 0xA10009/0xA1000B/0xA1000D U2 d" C' y1 l2 ~+ q% t$ J1 G
are the CTRL ports, which set the input/ouput L+ w6 y: T; p: }
# E1 `4 ~9 U' I% \5 `
! v' `: O: T) [$ b$ |! y
想讓subroutine在任何時刻都有效,
" ?! U8 v0 J m8 k& {- D# m* s就必須找global section。: ^1 j! g. i1 B/ ]" o' H# r+ `
控制器是其中一個,
6 Z- Y0 T+ @ B t. i除了控制器當然還有其他可寫入的section存在。 |
|