|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。
; J. y% \8 Z7 G: w7 W0xa10002 first controller
: a* ~0 E: m: o8 Q$ m5 C0xa10004 second controller
- w$ W' A' q# D0 l u' s3 P- F b# @7 D$ I& t- D2 J; b- f% B
0xA10003/0xA10005/0xA10007 are the DATA ports, ) q" t9 W0 N7 Y2 k) h% w0 I5 V4 s
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D 8 W- V+ P- d( Q8 A+ ~1 k& e
are the CTRL ports, which set the input/ouput
! p3 N2 q5 f( O/ v* U3 T; R; i9 d: n f+ ?7 Q, p
& l" q) x5 }+ @0 N" F
想讓subroutine在任何時刻都有效,
7 d9 R5 P4 e0 u; ^( y$ ~! v# U( E就必須找global section。
! w( o8 f) y$ P7 M; N, @& v4 D控制器是其中一個,) f: |5 \1 ^0 O" F7 H" Z
除了控制器當然還有其他可寫入的section存在。 |
|