|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。! N; A: E, J, l; I6 j. N3 N6 N. a
0xa10002 first controller$ O& q$ c/ _7 k5 K' ~. s: W8 C
0xa10004 second controller
+ J" k! \; n& e- A! q, l
( ] r7 U2 c1 K9 I, U8 w% Y0xA10003/0xA10005/0xA10007 are the DATA ports,
' {. `1 L* u3 _' B/ \- [. [" ]: Bwhich read from/write to joypad 0xA10009/0xA1000B/0xA1000D 6 ~0 d5 G2 P/ a5 O( e
are the CTRL ports, which set the input/ouput' B3 \9 {, p7 C! Y
: q% D$ i3 n5 e% c7 v# \
* u8 }" ^0 C4 n4 G2 U
想讓subroutine在任何時刻都有效,
7 m, G' k2 Y. l就必須找global section。& D) h n5 W9 {% n
控制器是其中一個,
A) a1 y4 y! b% f! J# x( g除了控制器當然還有其他可寫入的section存在。 |
|