|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。3 Y& d# t$ K& o
0xa10002 first controller7 J. u! j' h# @- f0 q; x M- c" g
0xa10004 second controller) }. M$ g6 |$ R1 k+ u2 V
+ ?5 h+ `/ M$ c8 V% X
0xA10003/0xA10005/0xA10007 are the DATA ports, ; j b5 W% W& T
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D , i& Q8 H& q% ~ }( u
are the CTRL ports, which set the input/ouput
" {" Z. w, _+ u( D' ~! O
' J$ B4 [, d: W, g# X; c7 O) h' o( E, Q3 m
想讓subroutine在任何時刻都有效,
+ V! C. J4 @5 D就必須找global section。
- E$ K- R) f9 h# q% p& y# |' e控制器是其中一個,# a8 H/ N \3 R; N6 q+ L
除了控制器當然還有其他可寫入的section存在。 |
|