|
发表于 2009-3-20 12:07:40
|
显示全部楼层
其他蠻簡單的,就針對第一個問題再說明下。$ Q( E# b" k' b/ G, _
0xa10002 first controller
1 \7 _- ^- C- D$ |2 r. `0xa10004 second controller
5 P9 \+ R/ ~. \; J, m6 C0 D
7 v) o0 c! I# `8 P3 S0xA10003/0xA10005/0xA10007 are the DATA ports, " Z5 e7 P& M; f, s7 ?$ Q$ L
which read from/write to joypad 0xA10009/0xA1000B/0xA1000D
" M/ r4 j/ W4 j3 ?( mare the CTRL ports, which set the input/ouput
* I+ C0 w, Z. \: C& ~: i, B K% C6 f) m2 i
/ S" W; H5 ~% ^/ S+ o$ ~想讓subroutine在任何時刻都有效,0 L/ { j- F2 V0 y0 I- v) B4 N" w
就必須找global section。
a; V: K9 S- o$ |控制器是其中一個,8 I. f2 P: f3 }( B! | j
除了控制器當然還有其他可寫入的section存在。 |
|