|
本帖最后由 yandagui 于 2017-3-18 16:16 编辑 3 O& T" A. W' u* }0 c9 n
3 R9 U _5 H# u
2017.3.13, A2 H0 ^" p/ i
& n( T3 J& k% E0 T
1 }3 L, K& B/ O* g
6 ` i7 K1 X) c$ V# Z
- .ORG $8001 ;SUPER CONTRA(J)
$ c0 P, I$ F9 N8 \ - LDA $39
7 q) V) [/ w$ x, o1 S' s+ q1 {( i - BEQ ADDR_804D* |; a& V( }5 F/ C
- ADDR_8001: LDA $0087
2 M x& d Z; ?, ]6 v: P - ADDR_8003: BEQ ADDR_804D
+ |: B( _5 E' O# R4 m( @: O$ a6 X% ? - ADDR_8005: LDY $0020
; b" Q- f) P7 i* |6 o r - ADDR_8007: STY $00029 X4 G& z; I8 ` y, y7 P
- ADDR_8009: LDA $00CA,Y0 Q& x- y2 k2 t0 Q! a+ h2 W4 M
- ADDR_800C: LDY #$08
c% o; V" k# l# M. o - ADDR_800E: ORA $001F, o( j3 t6 N1 Q# b
- ADDR_8010: BNE ADDR_801D
) W- T0 ~; }+ c5 j/ p - ADDR_8012: LDY $0002
) ?; _) F& i. h j' E- }8 H - ADDR_8014: LDA $0053,Y
( O: j9 T) E2 h- V8 ?/ g7 q+ f; f- o - CLC
3 u6 d4 @: j8 `( F9 z: m9 W7 a - ADC #$02$ M& U H6 i$ j7 K. M& V
- ADDR_8017: LDY #$00
1 c2 C4 T) ~" j- Q2 u V; [, Q - ADDR_8019: CMP #$08
8 y2 Q3 G5 O5 k3 \- \" `. k/ [- r - ADDR_801B: BCC ADDR_801F+ X) s5 U" b, v9 _. s) I6 u* o" E
- ADDR_801D: LDA #$08
) w" a" X5 ]# g0 C - ADDR_801F: STA $0001! ?+ Z; S$ k. n) V- o: M' D
- ADDR_8021: DEC $0001
/ K+ r8 y2 V; T1 V - ADDR_8023: BMI ADDR_8048" ~0 q9 z y) a1 l
- ADDR_8025: LDA #$08+ s& e6 N1 m, C0 z/ Y' _! I# ^+ s
- ADDR_8027: STA $0200,X ;送入纵坐标地址
$ F, a0 ?" d/ L - ADDR_802A: LDA ADDR_804E,Y ;读取图快号数据, C1 l/ N: U& g* v3 K' A4 o( u
- ADDR_802D: STA $0201,X ;送入图快号地址
2 {+ r5 g6 k, U' E: k5 T - ADDR_8030: LDA $0002 ;读取属性值数据
/ B# f% f l) x" Z7 @4 B% V - ADDR_8032: STA $0202,X ;送入属性值地址' C! E3 u) W/ S5 o/ { A, V
- ADDR_8035: LSR ;逻辑右移( s2 E1 Z/ L9 _! V4 p2 ?, z
- ADDR_8036: LDA ADDR_8056,Y ;读取横坐标数值- S$ ~+ I+ n, y! L+ C3 p) R+ q
- ADDR_8039: BCC ADDR_803E ;C==0,有借位则跳过$2字节
' E+ w3 C+ [7 i& M0 Y( ]4 g: f - PHA- b" ~0 Q3 m7 N% R& ]. J
- TYA! ^6 n' P% a7 V( X( Z: H, F
- PHA% c5 m; s% I2 T' }6 Z' e; v+ c: x' y
- LDA #$D4) s& Q* C8 H+ e: e
- STA $0200,X, W0 o, f9 l/ M4 b
- PLA2 I* j8 t0 f4 d. c$ e$ j- d
- TAY3 S! ~, _4 v. _ D9 M
- PLA
8 i8 `/ Y" W; p. v$ N* S - ADDR_803D: CLC
( u5 g H$ ]+ G' J' B - ADDR_803E: JSR WEAPON
% u- L9 a l9 R+ R( i - ADDR_8041: TXA
9 a# r. R* S+ m0 Y% A - ADDR_8042: ADC #$C4$ y/ k% o% R M+ P; e. H6 a
- ADDR_8044: TAX4 e. ]+ Q- Q6 N% t% b
- ADDR_8045: INY6 @8 q( L# W; K/ O A
- ADDR_8046: BNE ADDR_8021
4 E- y$ b2 z, U& | - ADDR_8048: LDY $0002
" S( h5 k; `9 A - ADDR_804A: DEY
! V& Q+ H4 a$ b - ADDR_804B: BPL ADDR_8007
5 N* s( Z4 `* s: j6 H/ g - ADDR_804D: RTS# t6 c! N D( ~8 y8 P" s
# O, m$ A6 ?, a0 @6 h1 t- .ORG $FF20$ {6 `* D) `. I; Q2 a7 N
- ADDR_804E:; `& @/ j1 {; T8 W6 z7 }
- .BYTE $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D ;生命图块号
/ i2 g8 o! N' B+ y' J. S - .BYTE $83,$85,$87,$89,$FF,$FF,$FF,$FF ;GAME OVER图块号8 Q F1 `; _, u. r, c
- ADDR_8056:' j3 O/ Y6 a# n$ k. ^' E
- .BYTE $14,$1C,$28,$34,$40,$4C,$58,$64 ;生命图块坐标
3 `. w. e3 ^' g' L - .BYTE $10,$1C,$28,$34,$40,$4C,$58,$64 ;GAME OVER图块坐标. y' e7 r9 e3 p5 l) E. |/ H
- % W w" W2 `$ ^& u5 ], g$ i
1 [0 I) ^/ _( i- .ORG $FF40! Q5 b0 c' A5 X$ J7 A$ N+ ^
-
z* s J: X5 y8 X K) x - WEAPON:! v n0 Y5 D/ g/ o
- STA $0203,X( g4 y6 e7 `2 |0 {/ p3 D
- PHP! \9 L7 G8 v1 F1 A4 Q& j! J
- PHA( ^5 @4 b$ i9 A9 M
- TYA
3 o$ L5 t0 u8 L# `5 h$ E, ] W - PHA
2 t* a$ u1 y, Y4 Z - CPY #$00 ;9 @* v3 D0 Q' G: s/ u) ]5 d
- BNE LB
) c2 O- a L3 `# Z1 d+ a N/ k - JSR S_WRITE ;第一个精灵( Z; t! n- g% F1 d( u
- LB:. M# z1 h- _, t" R
- CPY #$01
# C$ T4 y; Z+ P: x0 I' T - BNE RE9 z2 J7 b( X( d9 e% D
- JSR D_WRITE ;第二个精灵
5 n; \8 b9 k- v4 |" N - RE:
* K) i# X% }! F1 J3 b% n3 w5 O - PLA3 A4 Q; x5 F1 ]9 F6 H
- TAY. N4 }5 ^: X7 u! {0 s5 q3 Y
- PLA L1 v" ^" G. `& _: [
- PLP
' W( u5 v1 B* s( d/ p* _1 w& K - RTS$ P2 M5 C% i1 {+ J/ F& x+ Y7 m4 A, Z
- - S. s* q7 U8 Z/ F1 }
- S_WRITE:; f+ _0 N' u# K% k9 ^( s
- PHA9 Q Z! t' O& Q% M! d2 y
- TYA
. J1 `; P! Y0 @; Q7 A) M ` a( _: \ - PHA
: D! _. L! Y! y - S_CMP:
5 h! ?6 ]+ X7 A# e1 _- w1 y - LDY $02
. V# X* J# M" C( y, q - LDA $B8,Y ;读取武器值
- D) B/ D7 x. P% l0 P* K: a. b9 N - AND #$10, D! z% h; a) s+ N( f6 v+ ^
- BNE S_WEAPON( z" W3 A( O& u9 T1 s% M) ^! m
- M_WEAPON: ;普通状态7 R7 n2 q" c8 R+ \
- LDA #$93" b/ X" B9 z/ p# L7 A* f( a _
- STA $0201,X4 c6 V; T9 Z/ b# H- A
- BNE RETURN5 q! ~1 H. Y+ B3 d0 K; b
- S_WEAPON: ;加速状态. e, F5 K1 h$ i; b5 A
- LDA #$95
: ]/ p2 Q/ B: t8 T - STA $0201,X$ { N! a4 `& ^$ ~
-
& q9 O4 w& _4 t: L8 ` - RETURN:4 t4 [' e3 ~% T. X6 ]. C$ Y. z
- PLA
8 G% C( G% @* B - TAY
9 y# K6 L" c! R; m* |) D% u - PLA
9 ^. o2 b2 q( ^# p* V - RTS
, z3 M* J0 |& F9 t -
9 s( J# e) e3 o* B" { - 4 N/ ?/ K% i- e/ i$ k
2 P# c" R0 F# s7 @7 j4 k- # M: K" }$ ~8 \( c6 P7 C
- D_WRITE:
7 p2 N$ Y1 ^3 W V6 A% n- w - PHA" C4 G; J6 u" I) o5 T' r0 |6 F
- TYA$ {6 h) o6 j0 g2 P- Y% u) T" f
- PHA) d X, E, m8 \% t% Y7 Q/ F( v
- WEAA:
% a: w) R8 |% s8 P) L0 L - LDY $02
- u' z& V) V* }+ Y1 E - LDA $B8,Y; I9 X: ?2 W# V0 `: C# ` {& Z/ A
- AND #$0F
, f/ `+ }, ]1 F - TAY
- C( X; N+ [% y& m/ [6 W% N, p - LDA DATA,Y
3 _% q6 B( [' U& o V; r) d( D5 X - STA $0201,X9 V C8 v" y! A4 m+ U
- * B1 W3 I& o, N0 S( m
- PLA
v3 [0 O8 s$ H6 M9 P; _ - TAY
) T! Q* y% M- j* }+ F0 M - PLA
0 X; v1 u% m/ ~6 c0 ^5 Y+ e1 p! l - RTS* H# J# d0 q, d/ L* ~3 a! [1 K
- ! p% A# a3 ?7 W
- DATA: ;武器种类图块
; Q5 G5 A, O1 ]4 X6 E0 Q8 } - .BYTE $9B,$93,$95,$97,$99,$99
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
1
查看全部评分
-
|