|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。1 l9 G, T/ }9 ~% H
0xa10002 first controller, D& V3 w1 @( I2 e) A+ V
0xa10004 second controller% Y1 e! m4 v) b" V( B
0 ~/ F, J" G7 v/ {: \% K2 k* F% I0xA10003/0xA10005/0xA10007 are the DATA ports,
! j* l- @ _" n1 {which read from/write to joypad 0xA10009/0xA1000B/0xA1000D
2 v% N5 ?0 c/ h! f$ k0 nare the CTRL ports, which set the input/ouput7 A. T* b, [, \, J* D( e
% H& r( z0 b' I* f8 h
8 M& a5 |8 b% r
想讓subroutine在任何時刻都有效,
9 Y/ H& l5 ~4 ?' j$ {! ?$ o7 I# o2 ]就必須找global section。9 M9 E( S$ e5 W i* y9 y: }' V
控制器是其中一個,
; f! ~( F" ?9 p$ x0 t- y除了控制器當然還有其他可寫入的section存在。 |
|