|
本帖最后由 yandagui 于 2017-3-18 16:16 编辑
6 _- A# B1 q( s( t5 a1 R
8 O6 [/ O' J( s2 G4 m# m2017.3.13+ e& _5 N! L# W# ^
: M8 H8 H0 k: o* A8 q
9 ^3 l2 e7 M0 [: @3 {
! Y5 t5 r* l! E+ @$ p8 L- .ORG $8001 ;SUPER CONTRA(J)* j# y: Y4 O: d
- LDA $397 L3 @" y% z& g- w1 g5 X
- BEQ ADDR_804D
}( D+ K. |0 `# n/ t2 E, H - ADDR_8001: LDA $0087
9 u( q' ]+ `" N; L" {8 v - ADDR_8003: BEQ ADDR_804D9 M( z! n. P: K. X. E$ Y9 h( l
- ADDR_8005: LDY $00203 b1 z, m; [ s. T" q
- ADDR_8007: STY $0002/ I% u2 P0 `) s$ V# e2 {# ?
- ADDR_8009: LDA $00CA,Y" W' P# O( O) l4 l ]
- ADDR_800C: LDY #$08* ~) C s% l; [% w% C+ @% n3 O9 q
- ADDR_800E: ORA $001F1 N3 t* T4 [: |
- ADDR_8010: BNE ADDR_801D
# D' n2 [! X( L* _# `9 T* j - ADDR_8012: LDY $0002
4 `( m" f7 E9 H - ADDR_8014: LDA $0053,Y7 `; l0 V$ I. X! g0 W
- CLC0 P* t, c# n$ D0 m! d6 @6 {
- ADC #$02
9 n' f7 k7 P4 Y - ADDR_8017: LDY #$00
$ @! b' z' F9 e - ADDR_8019: CMP #$08
1 d$ C2 C2 I: Z - ADDR_801B: BCC ADDR_801F
& h f* H, q. g" H - ADDR_801D: LDA #$08+ A4 g8 ?5 ?) [
- ADDR_801F: STA $0001: {. i! `+ F$ v" n' ~
- ADDR_8021: DEC $0001
: @3 p: L2 L+ z5 Y2 ~ - ADDR_8023: BMI ADDR_8048; w+ b* h* N: l+ J! H
- ADDR_8025: LDA #$08, i" x( t s2 i/ G
- ADDR_8027: STA $0200,X ;送入纵坐标地址
+ ~2 ~0 l- q7 s& Y, Z" H% m" |7 ? - ADDR_802A: LDA ADDR_804E,Y ;读取图快号数据4 c' a0 E. \( V7 u* `( ^5 |
- ADDR_802D: STA $0201,X ;送入图快号地址
& O1 D% e3 j2 \: U/ T - ADDR_8030: LDA $0002 ;读取属性值数据
9 n3 e: M. b! [( m; R7 b8 J - ADDR_8032: STA $0202,X ;送入属性值地址) e% N1 k% s1 S W
- ADDR_8035: LSR ;逻辑右移
$ A1 X2 ?# k5 u% s2 ~2 ]0 ` - ADDR_8036: LDA ADDR_8056,Y ;读取横坐标数值
4 `" [8 j8 r) ~ - ADDR_8039: BCC ADDR_803E ;C==0,有借位则跳过$2字节$ V! e, c+ l4 p, C2 E2 K/ W
- PHA
& Q# s" j6 k5 v% p& @ - TYA
; M6 U! j' e7 z3 f; s0 l7 G - PHA
z- V7 C1 w) n1 L; N3 o# }. G. C - LDA #$D4
- D$ N0 Z* |$ m; O# Q0 ] - STA $0200,X) z ?1 }. r5 N9 ?# k: d4 _8 x
- PLA
1 i7 ?& c2 C5 d - TAY
% d8 O) @3 ]; } - PLA% D5 K: W& C {) W/ B
- ADDR_803D: CLC
) i% W3 s3 `. M1 [6 t @6 E- \ - ADDR_803E: JSR WEAPON7 [& q6 J' r: i V; R' U: W, |
- ADDR_8041: TXA) c& {* ]7 O4 _0 o& B( W6 m! S, {5 I
- ADDR_8042: ADC #$C4( l8 T& L5 k. C1 b
- ADDR_8044: TAX
% H+ J; I1 q: Q) k: Z - ADDR_8045: INY
+ ]8 e; k4 ]- A" Q3 S9 i$ } - ADDR_8046: BNE ADDR_8021
& [0 F `8 Z4 J2 z - ADDR_8048: LDY $0002
^ n8 l) ?! X, w/ J - ADDR_804A: DEY" q$ n) Y+ A6 K7 ?5 y# S0 ?9 T
- ADDR_804B: BPL ADDR_8007
& w' ?# r* O$ ^4 V: \3 g: Q1 G M - ADDR_804D: RTS
% A5 z; H- s4 Q: \3 \6 \
/ Q, N/ O, Z3 v J. P+ G- .ORG $FF20
% ~% m" q- f$ b: T8 Z - ADDR_804E:
/ e' `: S+ c8 L8 f/ g - .BYTE $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D ;生命图块号
n6 z* _2 e! O* u - .BYTE $83,$85,$87,$89,$FF,$FF,$FF,$FF ;GAME OVER图块号4 P7 ]7 ~# L5 b( N2 I% Z( Q
- ADDR_8056:& e) s9 O# w5 z* A/ r
- .BYTE $14,$1C,$28,$34,$40,$4C,$58,$64 ;生命图块坐标9 n2 P( ~, g4 s4 W
- .BYTE $10,$1C,$28,$34,$40,$4C,$58,$64 ;GAME OVER图块坐标
: J7 w3 o/ m* |8 X- T. l' v& a5 c, ^ - & [0 `! l x1 R% d8 G+ j1 F- J
% d$ Z2 p1 m+ j+ S- .ORG $FF40% n' y+ s4 K3 @* B1 L. ~
-
& e* B: t8 m6 ] Z) J; U1 y0 H - WEAPON:
' D% p" e; L" H; ?# O4 F - STA $0203,X! R! B, U' @. Y' I6 P3 f# l' l
- PHP
1 Y1 Y5 ?# m! m& J - PHA. g/ v- K" K/ c' h4 j6 C* H& d
- TYA
( B* T3 |! u, C/ A [3 S7 l r; r - PHA
* ], r3 J U' t7 n3 Q0 v& a& r - CPY #$00 ;3 i. j2 C1 w3 N
- BNE LB+ c$ }9 o4 Q9 _; x$ g8 W- Z# T
- JSR S_WRITE ;第一个精灵
1 M$ I+ g2 n! r3 F" `5 H/ \! e - LB:
+ |4 x" _/ X6 @; U4 g) D6 s4 C - CPY #$01
" }0 _. E( ` v/ c+ c5 z - BNE RE- h1 P& B# F p' y! J
- JSR D_WRITE ;第二个精灵
: R, H5 B6 o; n( o1 B. R - RE:0 N& h; p1 O- ? c0 e
- PLA; b% m( k) E; Y. J' Z7 ~
- TAY: g! I+ @' Q2 o8 s0 T
- PLA
3 s: ]2 J5 Z% S* j - PLP4 K# T$ M/ J- e
- RTS4 B; y5 C+ X- J) \$ L
-
" D1 M( G. q8 y( V - S_WRITE:
) n4 K( o/ ?& { - PHA. P) `$ t( \& p! {7 h/ W5 |/ w9 v% N: ~. \. z
- TYA
, [8 H, {& `* S" L3 j7 I, e" h - PHA
& L- P2 x: D+ g1 |2 G) p4 W - S_CMP:' l3 D8 I1 [9 R. X: i2 y$ [
- LDY $02
% G( g) o9 n3 N - LDA $B8,Y ;读取武器值& H7 X0 }1 k- ~! C6 H$ ?
- AND #$10" d' H0 O2 T2 E: n- x
- BNE S_WEAPON% |8 a% Q/ O; F/ M4 l! _* D( j
- M_WEAPON: ;普通状态
9 ^/ ~* ^, K9 c# j - LDA #$93: \$ |, u/ p1 o
- STA $0201,X- O* K' i3 G- r0 Z: |4 ~% G
- BNE RETURN, W7 I* _2 i" d- E
- S_WEAPON: ;加速状态% E. Y" t2 P: N# b: y6 j
- LDA #$95+ S W3 d6 [- ~
- STA $0201,X2 K( J6 y; ~4 v* Q
- 6 p3 w3 k; E% b/ A7 B; y
- RETURN:
* n% L7 _3 b+ K: I: h3 R - PLA2 ]; k- m3 y) J0 {% L+ O, ]: K
- TAY
2 G# t+ w# p& @9 z1 A7 X @ - PLA/ ^- D9 G- d8 k8 |; _* W& H
- RTS
" x/ S( h! r9 W" _/ ~1 Z* F7 a -
5 f7 L8 M7 r0 v2 K - 7 u# Q6 e% [0 l5 T
. m% q' ]" f$ a7 \, w) I7 t- 8 P1 g. q3 Y2 c$ c
- D_WRITE:
, f* ^& d0 h; l2 ]0 d - PHA% }5 v9 D9 [9 V
- TYA
! T! K* h. l& _- \. ` - PHA! {" w$ _7 K6 ]5 \6 c5 C# U5 L
- WEAA:' ?' p3 ~2 S& ^( d3 g* G
- LDY $02* ~1 @/ z; ?- j0 ^& k9 W
- LDA $B8,Y3 d/ t8 z2 L% E; f% I
- AND #$0F: L" I) c9 P/ Z6 p
- TAY3 C1 c1 I4 c1 f; a( C" b5 O: h
- LDA DATA,Y
. K1 y+ s) E+ G+ e - STA $0201,X0 Q7 ` e, D y$ a9 n4 N& u
- $ ~: v/ ?2 D+ E0 f
- PLA
T; N* k' k! d! ^; X - TAY' j F& |% V, U0 w
- PLA
0 x) m$ X# l, g - RTS
8 ?, H( V- y* ^( A4 T& S: Z/ i -
7 T4 K; S2 `! m, K0 [/ X - DATA: ;武器种类图块& E! q* a0 [) K) [$ u. p. Y& a. ]' E
- .BYTE $9B,$93,$95,$97,$99,$99
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
1
查看全部评分
-
|