|
本帖最后由 yandagui 于 2017-3-18 16:16 编辑
' h: m0 w2 }# f3 T- ]
4 }) G3 c, n5 d4 a6 p; R2017.3.13
# U+ Y; o* M7 r; |
6 w+ n) ]+ d+ G; Z, V2 z
8 w1 y$ d9 s& A- d( M- @" }( G) `) ^" {. N. C8 J
- .ORG $8001 ;SUPER CONTRA(J)
- R5 Y$ E2 V$ `/ l - LDA $39! U" J" b- J, L
- BEQ ADDR_804D7 O; l6 }! T# T3 [( \! c
- ADDR_8001: LDA $0087, T) R/ m. o# K7 e
- ADDR_8003: BEQ ADDR_804D
8 _) @6 Q. p/ f$ ] @- A2 C - ADDR_8005: LDY $0020
6 A1 O0 }2 K: k: X# D+ }# ~: } - ADDR_8007: STY $0002$ H# v( H5 v1 |# @& M. F) z
- ADDR_8009: LDA $00CA,Y8 ~0 ^0 }* a0 H j1 M' d
- ADDR_800C: LDY #$08$ Q. b2 j4 ^7 ^, t4 q& }
- ADDR_800E: ORA $001F3 d, o( S+ F7 ?) Z
- ADDR_8010: BNE ADDR_801D
! C0 y' F J7 L6 A& M- A - ADDR_8012: LDY $0002
! g" D$ Y/ z- h% I- R5 Z9 S9 X/ l/ ^ - ADDR_8014: LDA $0053,Y" t6 f4 D: q0 x- k5 E
- CLC
$ L; p3 V. P2 P2 n3 W - ADC #$02/ X. h; Q/ e# H! e8 z8 J) L
- ADDR_8017: LDY #$00) w$ d1 @1 V9 p! c% `8 T/ d- l t
- ADDR_8019: CMP #$08; C: U* V: ]3 s) _& L! ~
- ADDR_801B: BCC ADDR_801F
6 }& [! t+ U0 r5 c! }8 u - ADDR_801D: LDA #$08
1 P) [6 n; H3 a8 r# h - ADDR_801F: STA $0001
! U* s4 P! Q$ L3 U4 e1 I }2 b - ADDR_8021: DEC $0001
. ^$ s; D! ^! Y% h" t; k% E% A5 P: U3 r - ADDR_8023: BMI ADDR_8048
[5 {2 w3 J8 U# ~1 s - ADDR_8025: LDA #$08
& [: N0 H2 G5 Y# t7 c - ADDR_8027: STA $0200,X ;送入纵坐标地址6 D8 Q1 [2 U5 E
- ADDR_802A: LDA ADDR_804E,Y ;读取图快号数据
( l. L8 b' o0 B+ |8 _( L( n - ADDR_802D: STA $0201,X ;送入图快号地址. f( A& |4 w7 C
- ADDR_8030: LDA $0002 ;读取属性值数据
" m8 p/ Q2 Y8 B# S - ADDR_8032: STA $0202,X ;送入属性值地址/ q2 A6 E4 E, T4 H
- ADDR_8035: LSR ;逻辑右移+ h0 w( \" g9 ]" X# | p+ O0 P3 T
- ADDR_8036: LDA ADDR_8056,Y ;读取横坐标数值
0 n$ ~* F# S) Z: ^1 @( `) | - ADDR_8039: BCC ADDR_803E ;C==0,有借位则跳过$2字节
( h, ] T7 G1 g& ?7 L7 O, f% K - PHA# J( E1 v C* @. _
- TYA
4 G7 n9 N9 t) s3 K r0 C: G& ^/ } - PHA& b& o( r' r: {3 j( }3 ^
- LDA #$D4; [" b( m! T( b" l: V+ y; o( E
- STA $0200,X2 ^. L; t" }3 l
- PLA: A' u# E2 ~2 i0 K, x, I
- TAY' X# r4 T: o t
- PLA- R* `% Z* X6 C8 n
- ADDR_803D: CLC
; m+ e; h- l+ W4 W) ]' ^* P/ R& O J - ADDR_803E: JSR WEAPON
* r+ H* ]1 K/ c G |5 \5 r - ADDR_8041: TXA
3 L3 ]) c6 l( k/ @( l* d - ADDR_8042: ADC #$C4
6 w( ^* }# L+ U4 Q! ` L - ADDR_8044: TAX% Z+ t: [, A! ]2 w
- ADDR_8045: INY6 X7 B2 G8 g5 V2 r8 b; D
- ADDR_8046: BNE ADDR_8021" Z1 Q5 F, M2 x
- ADDR_8048: LDY $0002
0 E1 M) ]7 q; n( x6 h - ADDR_804A: DEY% D* }# a' c- H# l6 L' ~7 O
- ADDR_804B: BPL ADDR_8007- Q" ]; v% a. L3 Z+ A
- ADDR_804D: RTS
Q8 n0 p* o4 C G5 s, F
! B. f" g. N# R& ?- .ORG $FF20
! |. _6 h- h+ o5 L2 y8 T! L7 q: j. a - ADDR_804E:
8 S! y; o3 U6 K* E7 i - .BYTE $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D ;生命图块号
7 F: Q' p- j3 \6 B l n/ K - .BYTE $83,$85,$87,$89,$FF,$FF,$FF,$FF ;GAME OVER图块号
* X% L% ]% H7 C/ T$ j& @ - ADDR_8056:
1 D' G8 d, O! M& V7 l* p& Z! }; S - .BYTE $14,$1C,$28,$34,$40,$4C,$58,$64 ;生命图块坐标
! r3 e! h2 R& f6 r& ] - .BYTE $10,$1C,$28,$34,$40,$4C,$58,$64 ;GAME OVER图块坐标5 V0 G, U0 M) H. g
- + V- O. ^, R' }- c0 Z
- ! d" a' B+ D2 h! g- B, J
- .ORG $FF40; J; e% [" s0 w7 D
-
7 e& ~+ H# T( l5 _& x( J - WEAPON:5 B) `& D! U* V" A" q5 i
- STA $0203,X z! `+ `( Q" k$ R
- PHP5 D) c8 Z$ `5 r8 V$ S
- PHA
; Q, ~# @0 X8 o+ j+ G& A% r - TYA
! r! F+ _+ o2 p# ] - PHA
- S. C. h \! K& O% p - CPY #$00 ;) \, l% Q4 D: W; }/ t
- BNE LB5 T2 f* w8 U' H1 M
- JSR S_WRITE ;第一个精灵
% e! _& y; Z; b: h - LB:! c- J- s, \' {: W) }4 Y
- CPY #$01
5 G( Y/ b$ c( Q; t# Q - BNE RE& f& [' k6 p% |3 h3 \5 [
- JSR D_WRITE ;第二个精灵% A6 S5 Q# }. Q8 I' L
- RE:
; `7 ~' x2 X9 a( h. R% _# X - PLA
; @, a2 B: S6 T4 h' c, W - TAY) X5 r4 P6 H! v
- PLA& R6 ]$ T; \1 i0 N% g
- PLP4 b% t+ u& v' Y3 F) I O% H: @( [6 Q$ n
- RTS& Q+ S! k! I, u. b$ s5 z# h
- 0 k3 Q+ ~/ m+ P
- S_WRITE:* B7 ?5 G9 O5 ?; L. s9 i9 P
- PHA
3 Z1 ~' w1 K7 x& c5 q; q - TYA* J9 Y l% ^+ p* W5 ]. ^
- PHA5 l+ _+ s8 W# `: ^
- S_CMP:
, K9 @' |" M3 _! S - LDY $02
6 G, Q( c7 m+ q. I" K - LDA $B8,Y ;读取武器值
+ H$ V# R: p( K - AND #$10
" P- }( I! Z* k9 i! ^ - BNE S_WEAPON
+ [" {+ p& v5 s - M_WEAPON: ;普通状态
8 U8 W+ {* ?9 |- f+ m$ i2 Q1 x - LDA #$93
* B! ]! n3 _7 U( K# }( T/ H3 V# z. {0 j - STA $0201,X& ~- w! U8 l1 R- ^: }, B( F& F
- BNE RETURN, _$ g3 k& c# V& G
- S_WEAPON: ;加速状态; g8 F2 I) k; }" z: X
- LDA #$95
4 c1 b' [8 B& l) A: o/ N - STA $0201,X# |$ R) m8 i6 K, o3 v; k
-
' u! j) P0 Q0 a+ T, J* Z; H2 t - RETURN:6 Z' A0 ^* g. G% L9 {; ]8 [6 I4 [& j
- PLA
; J' U2 _$ {9 K) y3 y" e) H) Y- P - TAY
# \! j3 U" Z$ L& c! @ c9 ~* m - PLA
: b6 W% }/ U; U- D5 g - RTS
3 i; f* r9 i2 ~. I7 G# V n: L - 2 Q) S! Z |- u& f% x* Y& F
, a( `2 i% e- j/ k
' ]9 f& W: ~( e4 R( v3 ]- u& P+ b# c [6 }( d( W
- D_WRITE:5 n1 T, i$ c8 F \/ I6 {
- PHA, S% X3 _5 `1 W7 g2 F# H$ M# ]
- TYA- D+ N, ^- a5 |% O' f1 T/ ]
- PHA8 ~; h* T5 e+ ^
- WEAA:
0 ~' H/ F- {! G, [; r - LDY $029 o( M; r C% T% i- N/ \
- LDA $B8,Y
' k0 A( V' \5 O1 r' j( j - AND #$0F, ~& U5 E, U* E# v
- TAY
' x9 ~+ e! x l( i3 _ - LDA DATA,Y
# }6 q2 N, @& j5 B O& Z - STA $0201,X
8 o* d9 @8 E, s# f1 }) D1 |; @0 S - 3 b3 _4 k j0 I
- PLA
V/ x1 {" I8 F1 w X+ ?% z - TAY
+ P; ?' a( C. S' X: T* A - PLA5 H$ Y z' r; b- K4 x; \& G
- RTS H. ?7 H9 f' n
- 4 h& p$ _9 N) d' L0 T0 G
- DATA: ;武器种类图块4 e$ \) n4 ]! @6 r% c# b' @5 `) O
- .BYTE $9B,$93,$95,$97,$99,$99
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
1
查看全部评分
-
|