|
本帖最后由 yandagui 于 2017-3-18 16:16 编辑
7 c K; l% v1 {3 w$ w
2 c9 q; B* i- R0 @9 ~2017.3.13
: j# g" i6 o% ^# p& n, Y5 Y
8 ^- |1 {, q. L) m. d
, Z# k, A+ \5 a9 F7 L6 S
' R6 ]! Y8 ?! H4 E R- .ORG $8001 ;SUPER CONTRA(J): e A; p7 L& k& ^. `
- LDA $392 ]0 B* A; L* `" d3 }* |
- BEQ ADDR_804D
' K. V( F# a+ P9 Y* h% q - ADDR_8001: LDA $0087
k1 ~& _$ L* R2 w: n - ADDR_8003: BEQ ADDR_804D' i1 Y. V# C6 Q7 p
- ADDR_8005: LDY $00200 Y7 f+ }" L" c' B6 x& E
- ADDR_8007: STY $0002- @! B+ E% R) B- G
- ADDR_8009: LDA $00CA,Y" @- v6 Z( h( z5 |
- ADDR_800C: LDY #$08( w4 D( J! [/ M' X7 F
- ADDR_800E: ORA $001F% V2 @' ], a2 p: _! Q
- ADDR_8010: BNE ADDR_801D+ Y2 h# k. n; _ O/ i- y) ?! E
- ADDR_8012: LDY $0002
+ Y1 \! q. f7 U9 f - ADDR_8014: LDA $0053,Y& A8 h' D; f8 x9 A2 s8 S# t2 Y( _5 `
- CLC( V" m/ k2 C s6 p
- ADC #$02% B; c- z; w8 d* X0 |
- ADDR_8017: LDY #$00
& o# k* N M5 v/ r+ s) x9 @ - ADDR_8019: CMP #$089 d7 m* Y1 w* u" s' z0 W: N# \$ n3 r
- ADDR_801B: BCC ADDR_801F: p6 S+ K, V* F4 g
- ADDR_801D: LDA #$08& F8 o9 C* J: \: y
- ADDR_801F: STA $0001. T) p, w) B0 e+ `" d
- ADDR_8021: DEC $0001
* b8 y( F2 g7 b# ` - ADDR_8023: BMI ADDR_80480 v5 S' A% z/ {/ L) T9 \1 }* J% t
- ADDR_8025: LDA #$085 n; p' t7 P2 X: F
- ADDR_8027: STA $0200,X ;送入纵坐标地址
5 |- `+ }- F, Z9 S2 W" B& E$ | - ADDR_802A: LDA ADDR_804E,Y ;读取图快号数据3 G( Z; Z; o3 g* a1 d$ u
- ADDR_802D: STA $0201,X ;送入图快号地址/ i ^: |/ C/ E
- ADDR_8030: LDA $0002 ;读取属性值数据
* P2 E3 A) f6 n& ?8 l) d - ADDR_8032: STA $0202,X ;送入属性值地址
9 i2 @- a% q1 h - ADDR_8035: LSR ;逻辑右移% S) b& z! J* B
- ADDR_8036: LDA ADDR_8056,Y ;读取横坐标数值
8 V5 V8 g8 t" P - ADDR_8039: BCC ADDR_803E ;C==0,有借位则跳过$2字节' E$ J7 L: [+ i3 A7 \& }' U
- PHA) g) K* ~2 d9 K8 l1 ]) f7 G- @
- TYA4 @8 z. p, s3 T% d, M) V+ z
- PHA
5 I* A3 H- c, j9 C8 S - LDA #$D4
" c3 w! V8 Z8 W - STA $0200,X [8 M9 i4 d$ f+ n. u
- PLA
' u5 Z4 Q0 x2 g - TAY! R7 `5 C) v3 ^" U& T
- PLA
9 N+ ^# c2 d/ ~2 v8 p. Y - ADDR_803D: CLC5 P; ^& \5 s- q2 z
- ADDR_803E: JSR WEAPON
4 x3 ]/ r/ y: L9 j3 j4 u - ADDR_8041: TXA
) |8 `2 @# Z" B# K: i" [1 I - ADDR_8042: ADC #$C4
9 Q9 r* [. }% Y; T" T - ADDR_8044: TAX
( _& z* c9 \/ A8 s - ADDR_8045: INY* k# @' q+ {; O7 M
- ADDR_8046: BNE ADDR_8021
2 a/ \6 ^' h" O$ W) l( x - ADDR_8048: LDY $0002
6 b. h3 s& s" ^ - ADDR_804A: DEY
$ Z @ @1 \8 C1 R - ADDR_804B: BPL ADDR_8007- _1 x+ Z3 L1 l$ D* u& y
- ADDR_804D: RTS$ l1 g1 `5 |+ j. C5 q3 E4 B) D
- 4 s4 Z$ a" n# ]) w. U( E; w
- .ORG $FF201 L% ?, |" J, b$ t7 O5 [
- ADDR_804E:% \% }* W6 l4 D' ~
- .BYTE $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D ;生命图块号# O* m$ b+ z0 R# \, [
- .BYTE $83,$85,$87,$89,$FF,$FF,$FF,$FF ;GAME OVER图块号 n- p( b$ u. C4 B+ J: k' S
- ADDR_8056:# I) {! {9 ^- R
- .BYTE $14,$1C,$28,$34,$40,$4C,$58,$64 ;生命图块坐标) G. h3 T* d" \4 k
- .BYTE $10,$1C,$28,$34,$40,$4C,$58,$64 ;GAME OVER图块坐标
; _3 e' k5 ~4 V1 G2 F# t - 3 L `: g% e$ [8 U5 W r
- % M5 R. d; ?" G; q/ V( a* c" G
- .ORG $FF40" z' M8 r6 h7 _6 m4 O8 X
- 5 u( Q6 F7 y4 c0 r! n! }! g
- WEAPON:
# S" ~1 v% V& ] - STA $0203,X
' j- ^$ n- z& q: d - PHP
$ w: n9 |& ]: ]5 K - PHA# q; l, M6 v* F3 u% d
- TYA7 G) `7 W( e6 O$ ^! z7 x
- PHA4 @# F, G+ ?; P! _- h
- CPY #$00 ;& H* }3 e l% v# E# ]" R1 f
- BNE LB$ l0 E7 }7 j( h" _' C" q1 g& R
- JSR S_WRITE ;第一个精灵
6 l& X+ @% T5 l- E - LB:0 R) n- W3 A. T( H& y9 _6 X
- CPY #$011 } w" E8 R0 n& g. c
- BNE RE5 n% [: Y% X' E' J H1 X$ @6 V
- JSR D_WRITE ;第二个精灵
- O1 J7 e6 G9 T, p8 `2 s. q- j - RE:& Q3 P( r5 ^0 @" l" ]7 ? ?0 n
- PLA
/ V: R" r+ T9 s+ S g - TAY) v# I0 @9 T% m
- PLA9 @2 r; e4 n$ |! t5 i9 P3 x
- PLP
# C* P# }% d! _' v i - RTS7 a; P/ h" F, V6 e, a, |5 f/ F
- 4 \3 ]* X8 O" a9 T
- S_WRITE:' j& h! b% g; @$ p
- PHA# N H. `5 g+ @% @
- TYA. f% d; w- @: @3 O/ p
- PHA) `! K4 Y- X$ r, N7 d) }
- S_CMP:0 b& o f0 A- m$ C
- LDY $02' P8 V0 `+ w* b: n
- LDA $B8,Y ;读取武器值/ Y. Y& d& @# b* o# w2 U) J
- AND #$10
; D+ h5 u' z" g3 W, O- L% n - BNE S_WEAPON" f) \5 l& j# U4 k* O7 M% d6 R
- M_WEAPON: ;普通状态! U6 a' f0 ?' w c' N# g
- LDA #$93
1 m5 r$ Y$ F2 J) L9 C: V - STA $0201,X
) Y* T1 ^0 e, A" c/ J% B6 q - BNE RETURN
: q# K Z0 h; f4 h) O" b# t - S_WEAPON: ;加速状态
9 D$ w5 z( F2 ?% P: C( N - LDA #$95( A2 D4 w" ^- z! X' @( w
- STA $0201,X
5 w! C ]- z6 E$ h6 H+ D -
; P9 a3 [* \% M0 Y - RETURN:
9 ~8 k4 N8 Y$ z# z/ ^, J2 u- l - PLA
! F1 E. o; v; t& y: V% W7 o2 I - TAY4 \" l0 e4 C6 T1 d1 o2 P7 _$ M& V% G
- PLA5 p+ {' R$ u4 }
- RTS0 H% e% i5 \9 B" o! B
-
1 ?& d8 ~( U) q8 s6 |6 w - / I- V; i8 @1 P* y
- ' h% H) Z) C1 Q5 A; F. U: v4 S s0 R
- ( I0 D* Z2 o9 I$ O& k* H2 u3 d! b
- D_WRITE:: k2 ]/ J& m7 s7 f8 D4 _+ T; o
- PHA: {# C5 I, d8 F
- TYA
c0 g2 y! t: u, l8 I - PHA
0 r) o- K1 f) f, h4 H' e- H' u. I - WEAA:
- J. \6 y; ?. }/ W; E# v - LDY $02- h" q. d, u* N/ w
- LDA $B8,Y
; o( b1 ~% f4 o9 K; M - AND #$0F2 ], q8 P/ I2 _# h8 a" s
- TAY
' y$ V: s; r' } j# n$ h+ o8 F9 ? - LDA DATA,Y
8 p$ ]. r& P+ I/ T( ?3 H - STA $0201,X! p! M3 s. T; i( `- u
-
* q& _, n( H* ? - PLA
, V/ O3 I' G/ W0 f1 m- D. m& _, { - TAY
3 `& f1 \" G9 E! M C3 _ - PLA2 o' ?9 ?6 a5 Z/ w" X- Q# H
- RTS: _: x" |5 b/ s1 p
-
1 F& ]) Z& k" `3 d) h+ V! d - DATA: ;武器种类图块% C& f% ~! b/ W
- .BYTE $9B,$93,$95,$97,$99,$99
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
1
查看全部评分
-
|