|
本帖最后由 yandagui 于 2017-3-18 16:16 编辑 ) S7 _( D2 a g! V- E4 v
. P; y, J& ]) G) B2017.3.13
, j) `. b7 B8 i6 K& m
! Y* G5 B5 ^) q6 K6 Z2 {9 D/ p
9 P/ q/ z, c2 n7 Z" T! m# z7 r+ n$ n3 L" r& Q8 W
- .ORG $8001 ;SUPER CONTRA(J)
3 r; z4 f5 r0 f, Q; Y - LDA $391 B: e* V1 ^1 J; h- B9 J# ~+ i- r
- BEQ ADDR_804D
; o- v/ ^* I: T - ADDR_8001: LDA $0087
& d8 f# G& D4 k' E; `3 F3 l - ADDR_8003: BEQ ADDR_804D5 C5 X1 r' p; X: t+ Z6 v
- ADDR_8005: LDY $0020
6 c4 N' i) b1 \, b4 P - ADDR_8007: STY $0002- K. W4 w+ y' r8 ~5 d a
- ADDR_8009: LDA $00CA,Y
; z/ k% b' f) P) @! g# K l - ADDR_800C: LDY #$08; H1 \* U1 L" G" ]* Z$ c4 x
- ADDR_800E: ORA $001F
) j# P' `8 N3 T+ z) s - ADDR_8010: BNE ADDR_801D7 A7 p2 d3 j: p B5 w1 T
- ADDR_8012: LDY $0002
" P- ]# b/ v; X8 i* E - ADDR_8014: LDA $0053,Y! V; ~5 a7 N2 I+ _5 R5 Y0 ?+ w6 p
- CLC3 b, g, ?7 p9 c" E" J0 N
- ADC #$02
. D' e: c6 s U) ?8 Q/ p - ADDR_8017: LDY #$00
4 [5 q% b( {0 H7 a1 ~9 G# D, s, h" G - ADDR_8019: CMP #$08
; \5 R; n& [5 s0 P/ ? - ADDR_801B: BCC ADDR_801F( L3 q/ A' h6 G: g# I M) u6 @" z
- ADDR_801D: LDA #$08! i0 S$ q% t$ Q: C9 b3 G
- ADDR_801F: STA $00014 D+ o n( B6 W- T w* m
- ADDR_8021: DEC $00014 _% A7 A4 e8 X+ z
- ADDR_8023: BMI ADDR_80482 |5 t$ ]; m2 Y. D( O! s- E8 v
- ADDR_8025: LDA #$084 }$ [3 e" R) h& P& J' F7 w
- ADDR_8027: STA $0200,X ;送入纵坐标地址5 P4 T$ ^' Z4 y2 r2 i. }
- ADDR_802A: LDA ADDR_804E,Y ;读取图快号数据
. y3 D! w3 Z0 v9 k9 o2 _0 M9 c8 G! g - ADDR_802D: STA $0201,X ;送入图快号地址/ R, a* [6 ~( Z) r7 S8 R( V* l
- ADDR_8030: LDA $0002 ;读取属性值数据
( l8 m- I- C3 g - ADDR_8032: STA $0202,X ;送入属性值地址( B F0 F& B5 A
- ADDR_8035: LSR ;逻辑右移
- h0 Y8 u p5 m - ADDR_8036: LDA ADDR_8056,Y ;读取横坐标数值1 E4 l' F9 U. W7 L$ T a
- ADDR_8039: BCC ADDR_803E ;C==0,有借位则跳过$2字节+ V# | C- [" o3 f4 L: t6 Z
- PHA$ Y6 v3 H% E5 {
- TYA
# N) n) _! S; k3 u - PHA
# a9 |2 P* }7 k2 l8 v) v - LDA #$D4
5 \3 x) p' ?$ q: r$ Z$ J0 C - STA $0200,X
$ h4 U: A$ t* m# I8 x' G9 d! N2 a - PLA
) x+ m- f1 S2 Z, r' i/ G8 _! M - TAY W* Q) ^5 L% r. F4 @) Y! ~; k9 a
- PLA
4 J; t: W, H5 k) E - ADDR_803D: CLC9 h- X/ D& A7 Z: o* Q! y
- ADDR_803E: JSR WEAPON
% Y3 k- S# m" d, K - ADDR_8041: TXA
$ _7 {2 \' B7 {& x8 `7 F5 A - ADDR_8042: ADC #$C4: ?( H7 O3 g: o8 J8 Z1 _7 U
- ADDR_8044: TAX/ e! {/ {4 r, L8 g! g
- ADDR_8045: INY
; e4 o+ |; \3 L/ |9 M. c/ T - ADDR_8046: BNE ADDR_8021
5 D+ T$ {$ o% n/ y* r$ L - ADDR_8048: LDY $0002
/ J' _3 ^6 Q u7 I - ADDR_804A: DEY
0 J* Z: L/ ^/ _( W - ADDR_804B: BPL ADDR_8007
! _4 t2 }' F9 | - ADDR_804D: RTS4 N- Y7 s1 {: c t" Q" x( S) G2 _
1 r' Z) b3 N' W, R/ _. R' H- .ORG $FF20
2 ~9 q8 o6 n0 W# M _: u7 u - ADDR_804E:
0 h h8 \" b3 f" i$ ?6 c& a - .BYTE $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D ;生命图块号
+ h2 G- q# a" Y, v G - .BYTE $83,$85,$87,$89,$FF,$FF,$FF,$FF ;GAME OVER图块号
& q3 U1 D/ U0 P0 Q* P2 _6 \( ^/ M - ADDR_8056:
, \, { K- m8 s: x7 q0 ]" L - .BYTE $14,$1C,$28,$34,$40,$4C,$58,$64 ;生命图块坐标
. _2 {1 i5 X$ I7 D$ P - .BYTE $10,$1C,$28,$34,$40,$4C,$58,$64 ;GAME OVER图块坐标4 g4 {% K9 Z9 D3 G
-
) y8 W+ c' H1 \' Z" j - . { O0 m" C3 O* b( L( B
- .ORG $FF40( r! T8 K4 g# D: [( O3 O f
-
( _- W! e' r* a - WEAPON:4 c( A; V ^$ g" c
- STA $0203,X
2 N3 t1 A& y1 q8 m - PHP
, j+ T0 l! j9 {, ^+ r. [$ k" f - PHA1 X- b+ V0 I" h& t! J" |- \# e. v
- TYA2 U0 [7 i/ L0 ]
- PHA
6 n8 Q3 y/ B. C5 r - CPY #$00 ;
" z& t( [3 V7 e# S - BNE LB
1 ^! N' F+ A* J$ S3 m3 Y - JSR S_WRITE ;第一个精灵4 n8 }0 w9 d6 s% M
- LB:8 V$ l+ m* G3 q& \; G5 g% O
- CPY #$01! r' Z; \& L' F
- BNE RE
& U# B" S9 O8 c0 X - JSR D_WRITE ;第二个精灵) g9 I, G( }5 o; l" C
- RE:- N8 r9 ]& }: O7 F! c, W( e# ]& Q
- PLA3 |+ G2 n3 J3 |, I! m
- TAY
6 f/ M( D0 M3 [4 K - PLA2 m2 e8 Y; i3 G
- PLP% H- j9 h+ T) A: s6 ]) T
- RTS( B W A9 g/ U
-
3 m+ J! G+ e6 @( |, g" k - S_WRITE:+ c. e" o2 o7 Q
- PHA
3 h1 i* d+ n1 J1 o/ z" @2 N8 z, X - TYA5 `- I' r) {; v$ o5 C
- PHA
. t, } m7 D9 J8 R7 B3 G; a - S_CMP:9 r- ]! l2 g. f, K. e' i6 X/ p
- LDY $02
6 r/ V" H7 t( I6 O5 _2 X - LDA $B8,Y ;读取武器值& x6 L' o8 Y. @; X8 a8 c) L
- AND #$104 p) M8 I: G4 Q8 J ~' B& \
- BNE S_WEAPON- M: Z: X% v. O/ z1 [+ U
- M_WEAPON: ;普通状态
% _& ]" w* \3 b# X - LDA #$93, D' \0 n0 S3 T. j7 K
- STA $0201,X
& `$ H& o- ~2 ~' f: @5 F - BNE RETURN
) p% T; s; {& x8 h% q - S_WEAPON: ;加速状态
( \+ E; I2 M, O! U2 G$ z- j - LDA #$95 R5 k. M3 Y0 h& ] d
- STA $0201,X
5 h/ v! q' U& b' q9 I8 t: T -
- h/ A5 N6 X; N* i - RETURN:& {; |9 a! @$ q) d+ p' i
- PLA6 r3 ]! H# S9 s: T- Y3 ?4 u) o" v
- TAY/ l' D' q" L0 O1 L/ u% ?! ]
- PLA
& J* J+ `& c+ J - RTS5 q% K5 [& s7 ?6 o, R+ D& X1 L
-
2 r) c: z v5 J) T - 5 J2 Z4 z2 f0 C/ L1 \ F
- ; [6 S* z0 B; q4 ^9 Y5 T
- H. [9 Z1 {( v7 k- D_WRITE:0 q, y' r8 y* \2 B( F" {
- PHA
4 y: r, B I4 T2 K4 u. Q - TYA# Z/ C9 U0 j+ N. z7 y
- PHA; q6 t8 Q6 |# b" Q0 V o, R
- WEAA:
( {: L0 v' b6 W' X! V& O5 j - LDY $02; T, H2 H7 D. E* d
- LDA $B8,Y/ ?% z9 V: ~$ R' k
- AND #$0F5 F* R7 M) Z% s$ f5 R0 W
- TAY3 J d+ y- v& l: d& e l( H; H
- LDA DATA,Y0 M X5 ^) U( q! m% B. k
- STA $0201,X
( ~/ E0 h/ k3 `2 a% T) ] - $ C3 ^0 ` a* z! M p! G7 m
- PLA' h* |; ^- K, p# G, V+ U+ |
- TAY
) v+ ~) n1 \6 f |$ ^, ~5 T, ] - PLA
' [) j4 F/ R# {0 | - RTS
% l5 l$ b# Z' ]4 \, f/ L - 3 X, C2 E$ ]/ a' k% F. R( q1 B
- DATA: ;武器种类图块& U0 X) Y- S, J$ ~
- .BYTE $9B,$93,$95,$97,$99,$99
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
1
查看全部评分
-
|