|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。7 v4 {9 B, F# K- W
0xa10002 first controller
( n5 u, E, s# y8 B0xa10004 second controller
4 O. \, B! J* X; ^. p7 L; z0 {& o* J/ g" G+ l# U0 F
0xA10003/0xA10005/0xA10007 are the DATA ports,
! P1 Q) \ C6 `% p: twhich read from/write to joypad 0xA10009/0xA1000B/0xA1000D 0 N+ D+ P8 P( [3 |& j [3 R# O* \
are the CTRL ports, which set the input/ouput
6 \* k( s4 y4 v" K2 T6 l$ I" V
* H4 a/ O0 R1 ^( @. k
( q0 \7 Y& {) M/ E想讓subroutine在任何時刻都有效,& B8 m" L9 f8 z( W
就必須找global section。% ^* ]1 f9 |! j& [* b7 N4 J
控制器是其中一個,
% C6 U8 J2 ^7 I; C$ a除了控制器當然還有其他可寫入的section存在。 |
|