|
|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。
& H% s% Q8 _( {9 I9 _0 A0xa10002 first controller( y! p K1 t0 Z, g' `2 x
0xa10004 second controller
8 ^+ d) P/ M6 _, L5 @3 p# u0 K) |& \$ A
0xA10003/0xA10005/0xA10007 are the DATA ports,
4 f; J" T' w) _, O$ Jwhich read from/write to joypad 0xA10009/0xA1000B/0xA1000D 3 E8 L& }) w* n3 @
are the CTRL ports, which set the input/ouput. _' A" u9 H2 G0 E: d! C) v
0 o, w# b [6 b" G" t
" L( w5 L( W T: H8 R! o, l" W* Q4 t' h想讓subroutine在任何時刻都有效,# a" {% d# P" Q/ g
就必須找global section。. H* `9 W, ^4 z$ N
控制器是其中一個," G9 b5 A" M3 E% O$ e
除了控制器當然還有其他可寫入的section存在。 |
|