|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。
/ X2 X0 h5 B( C! s9 m: x' o: |3 c4 W- h4 b0xa10002 first controller
; K8 X+ p1 g$ W$ ^6 P( ~' g+ h0xa10004 second controller* J6 p1 t M( q, I8 Z p$ c
! {) `; w& ~. ` A0 K4 ?
0xA10003/0xA10005/0xA10007 are the DATA ports, 4 p) W* G, I' o1 i ~5 Y) `1 b* R
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D . C6 s) z+ y$ w2 I7 Z, y" F
are the CTRL ports, which set the input/ouput) J4 k! r4 B G4 p* n I% I9 J
# y; S% s/ O1 q
" b# U2 ~ ~9 `8 l; u想讓subroutine在任何時刻都有效,' L% a2 n: |6 s$ u3 r+ n
就必須找global section。0 m. o6 X0 ]% k$ ~
控制器是其中一個,
$ t* Y! R+ l% `除了控制器當然還有其他可寫入的section存在。 |
|