|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。: F0 A2 ]& Y6 C/ s& a$ |
0xa10002 first controller
. p6 ?6 ^$ Z; T8 L! ^3 b4 O% }0xa10004 second controller
% `' g- r4 T0 S
/ e) C; q+ g$ U% d0xA10003/0xA10005/0xA10007 are the DATA ports, 0 k/ ?- m+ t, W; ~. L, Y; P3 r
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D # A; { W, L2 c8 d
are the CTRL ports, which set the input/ouput
; _4 h( b6 q, Z) C5 Y' }8 s; w9 ~ j( C1 e
9 i2 Z% G1 p: p4 D" d0 {/ V: ~% l
想讓subroutine在任何時刻都有效,# n1 }8 Q5 F$ i" Q1 Q
就必須找global section。6 j. I8 U# k6 N9 w7 x7 p" }6 Q
控制器是其中一個, `% D/ L, A0 P- F4 I# m) @8 E
除了控制器當然還有其他可寫入的section存在。 |
|