|
本帖最后由 yandagui 于 2017-3-2 22:17 编辑
+ A( [& B7 b4 e; H8 e# l8 k, i0 A' _' O5 |* a
[遗作][魂斗罗][自杀2017]8 }- S5 I3 l7 Z# M$ g" t- d
# Y* n8 r. U' x; O& l. w+ _
时间:2017.3.2: a, N% E8 c' L K: W
作者:FlameCyclone0 i1 e( |) O p" y: A5 G
内容:
9 J* r+ ^" D7 n- @# K( k; b 杀敌时除了过关必须的敌人,其他打中时我方角色一律死亡,喜欢挑战高难度的变态可以自己受虐了.
$ g! R9 w* f! C$ W0 s2 D
6 W& c: V* A1 o, k- R5 G1 ]flamecyclone.ys168.com
/ Y: K5 s1 h2 i9 p# fwww.nesbbs.com6 O" p2 T# b, ^$ q! D" m6 P1 q+ [
- .ORG $FB50
7 K9 D3 N: k! d3 Y" [+ h -
) O. K8 a3 }* G6 [7 Z0 k# Y - KILL_DATA = $0780
/ ~' y8 X# q* L2 r9 ~9 I. J: O; _ - KILL_FLAG = $078F
: v" o& ~* u- i+ b2 O( A5 Q6 { -
5 [+ D f8 C% ?- m - LDA $033E,Y9 t( ?" {' O8 E
- PHA
- Q. N4 @; a+ q* _ - TXA( f( d& T, F" n1 p) o6 C( y* q
- PHA$ s8 e/ |% M+ R# m) O
- ( q# P3 V9 B0 ~! i
- LDA $80004 I% m( Q4 c3 ]0 E9 ~8 u0 G L
- PHA
- Q- C6 K- k7 ]3 n* A( ?$ L9 a, v - TYA
( m+ A# Y/ }1 B* C! x2 @ - PHA
' N" t& r: {9 ]- |0 \1 U5 V - LDY #$00
5 R3 _# r. [$ I/ B8 A& ]% W) d - JSR $FB21
% y: G+ U% m& `" I) U! A. v1 z, M - PLA9 E3 a1 R' o+ t; a
- TAY' C V' ]5 [: k7 W2 |
- JSR $A000% W8 ~/ c0 V6 K$ S; w
- PLA
8 r8 V. x; Q4 A5 t* e7 J' H - ORA #$01
. k! {/ [* B: @# |, K - TAY
. f {' z4 h/ S, P9 j) P - JSR $FB219 c* [1 q9 S& R. F3 n! [ j! c
- + ]3 k( G8 I( s9 J7 ^
- KILL_START:! T, H# R' l* h. U' x+ ?
- LDA KILL_FLAG+ ]3 ?1 l- B$ T' E5 v& J' q
- CMP #$FF2 ~5 C e0 E$ U" o9 u6 X
- BEQ BACK! d- i# g! _+ c4 D. ]* g r# r, Y
- P1_CMP:
, F; T+ L0 p' B, U# m. m( p! x - LDA $0090
5 M- }5 H# U3 w4 k4 u0 |; V/ M/ S5 W - CMP #$01
$ c/ L3 e+ Q0 o, J - BNE P2_CMP
) y) X3 X- l& Y* R3 ? a5 W - LDX #$00
0 J& X1 t) L9 w2 b6 A - JSR $D474
) O$ _. A" T4 y/ p7 X& X - P2_CMP:+ K: C9 ~4 {; }/ ^# n. _! N8 _0 j7 e
- LDA $0091; a0 ]8 G" u& @3 T' M% I1 V
- CMP #$01% Z% e; m- e: T& z# [
- BNE BACK
8 {# m; t) B# Y; [ - LDX #$01
0 I& q6 G9 ^6 T! J - JSR $D4742 ?0 b/ t3 h% w4 c$ Q$ [+ U- d5 M
- + k! ]5 N( ?, B' p6 A# k2 S
-
9 `% t/ G. c. B - BACK:
: n, g" C! E' @/ y" r - PLA0 O( H" J: U1 G/ H0 i, A
- TAX
0 D- Q; |6 ^# @+ O S- s - PLA7 [8 z0 P x2 _- Y$ g ]
- RTS
! M. e6 `- S9 ~1 H - : V* u5 {) U: t
, H: r5 } B8 n; n- .ORG $A0008 s2 t& @% G- l
- 0 `/ s! ?8 Q% u/ l" ?
- KILL_DATA = $0780! o/ w# v7 U! x
- KILL_FLAG = $078F
! l, C8 y# L( m1 ]9 |3 } -
$ u% F2 D9 V- |( v - STAGE_1_CMP:
/ x4 `5 R1 T1 `. g0 j) I w8 S# a. O - LDA $30
9 S/ O9 w$ g* e7 W4 u - CMP #$00
" X& ?6 a, K2 _4 q: h+ W6 m - BNE STAGE_2_CMP' d4 w: ^/ b8 k/ x; {' M/ F
- LDX #$00
9 T- F9 ^4 ]; H - STAGE_1:
8 N6 d5 P3 `( f7 l - LDA ENEMY_DATA_1,X' t- o, h7 J' ?+ | M) _% P/ W" D
- STA KILL_DATA,X
7 l; F' O# U2 g8 i9 p6 Y - INX
) p3 Z( T5 [/ ^ - CPX #$06
6 }2 u, C7 i+ V* {( c3 g; H' g - BCC STAGE_12 _9 i9 u1 }$ A r
- STAGE_2_CMP:4 y4 t+ k* u8 h e/ {: |
- LDA $30
3 q5 N5 r) J3 M/ _: N - CMP #$01! `) O# H. g7 a" C+ }3 O. }) A, l, g* h
- BNE STAGE_3_CMP5 t+ e1 V y- v/ T+ h, @/ D
- LDX #$00
; s" [! x, V: h/ F4 U - STAGE_2:0 Y2 ^ |1 H8 N! j
- LDA ENEMY_DATA_2,X
! ?: X2 ]. E7 M& d- N, t - STA KILL_DATA,X: _( g4 a" P! i3 o. G8 L
- INX$ `8 N/ {. Z$ p" m+ l( U( T' P
- CPX #$06
2 A$ U2 x. g# }' r1 f9 |# D* ~* M - BCC STAGE_2( A# f; G6 Q7 Y: h$ P4 ]# q L
- STAGE_3_CMP:
7 I1 Z' o- d- [, O* D; T p, Z - LDA $30; ?5 N. k- Z) B8 g$ {3 i& y
- CMP #$026 }* t& z+ X4 e4 s- u/ ^
- BNE STAGE_4_CMP
5 J0 }$ r, {' \ - LDX #$004 [# M$ Q- o' f6 F- Z
- STAGE_3:
2 u$ r2 ?" U' n& a) t - LDA ENEMY_DATA_3,X
. o, j8 t) X' ?; v4 W! u' z - STA KILL_DATA,X8 ]/ e7 v6 I/ D( I8 N
- INX
! b" m' F+ U! X9 k' f - CPX #$06
: b4 r& ]( z2 \/ g3 s - BCC STAGE_3
4 e3 R9 [. y9 Z6 A; B Z$ n. N - STAGE_4_CMP:
: ^( t" E4 z3 C* I* P5 e4 ?4 j - LDA $30' \" s8 ]9 K0 `, m9 d1 G9 S
- CMP #$03
8 `2 m8 F1 d6 o8 x, I: d - BNE STAGE_5_CMP* F0 X4 q/ y# } G+ d4 x+ }9 m
- LDX #$00
7 D7 B6 a6 n0 i' x4 J2 L - STAGE_4:3 R2 U7 c9 C: S; F6 I% K" ]1 ~' x
- LDA ENEMY_DATA_4,X
8 v ~2 T& Y+ \$ i; o$ E( h% |" l8 b J - STA KILL_DATA,X0 X, A) g3 Y0 j4 Z7 F0 @3 d
- INX
5 h, m' V" ?& {& o# @5 H) J - CPX #$06
5 F1 j: R1 b* M7 C - BCC STAGE_4' O) l" o B6 I K! B6 d
- STAGE_5_CMP:
8 y7 l+ n0 n8 a( D9 q. s. K. t0 M - LDA $30
0 x# H% c/ a8 G) o2 v. D- A9 Q - CMP #$04
( W& K) e1 h* d+ H - BNE STAGE_6_CMP0 q. {& H/ W" R( p/ u
- LDX #$00- G# M! {, W' X/ ~
- STAGE_5:
( s S4 R! S8 t. X - LDA ENEMY_DATA_5,X T! q7 o+ Z8 O/ ]# K) r5 n; i9 \) o
- STA KILL_DATA,X
! ^2 g. i+ y; b& b/ U4 l - INX
3 G& d! E6 R. r. ^2 r& o0 c1 a - CPX #$06
) W6 D- m, b/ @; R: S ^ - BCC STAGE_5
7 v0 F3 U9 h" ?# x- q; t - STAGE_6_CMP:
' D; r8 n6 b: l8 i4 G - LDA $30
- N$ m- q1 V/ ?; H - CMP #$05
; v1 a. m2 x% @' i5 g - BNE STAGE_7_CMP
9 D. N: c$ `7 ? - LDX #$00# m: Z. X2 k3 P( n4 P+ l, g
- STAGE_6:
h0 `8 [1 k' E - LDA ENEMY_DATA_6,X4 N1 y9 c7 i/ w$ e" g& r0 \0 f# k
- STA KILL_DATA,X
O3 [0 [2 T" y* _! A% ~0 Y; ~ - INX0 A% F4 a; _, ]2 Y4 Q
- CPX #$06
# G" R% }% O& M4 `) r3 [7 E- c - BCC STAGE_6/ }% _+ x) X# C6 D
- STAGE_7_CMP:
2 B9 M6 J2 c6 A' t - LDA $30
5 h6 y5 ^; p3 O' t! P, v - CMP #$064 z9 z' P: @0 K+ g2 k% _
- BNE STAGE_8_CMP
* s/ \' v6 u( F! @: H - LDX #$00
5 C; s8 ^ R" O* Y- {! i - STAGE_7:+ F9 v: G( S7 j4 K4 G! {* \
- LDA ENEMY_DATA_7,X3 {! k7 X8 P% p! m- x* i$ r
- STA KILL_DATA,X
( a; w6 H' o) w9 h( a3 D - INX
9 @% u6 t" V9 d/ y' a( ^) }4 H, { - CPX #$069 |" \; b6 q* ^- {
- BCC STAGE_7
! N/ q+ Y4 [6 f' h. p* n - STAGE_8_CMP:1 @8 T9 ]! Q0 h' F8 X; c2 P; ~
- LDA $30
1 M4 `9 e8 b% M/ |& B: S - CMP #$07
0 ~! y& P. w8 @$ l" l - BNE STAGE
: v* ]9 L* y% q2 a# q: C8 [ - LDX #$00
$ l: N! C+ X% U7 }! a; U! b0 T - STAGE_8:# p# l4 q( Y. D. v% ] `4 E
- LDA ENEMY_DATA_8,X
+ [" b7 y% ~5 s; q - STA KILL_DATA,X& {# b& C. b J% U& v
- INX
% ]3 \+ `8 g; `! F1 c9 J - CPX #$064 v# |, V7 V3 `$ ~: \' B2 C# ^& Y& Z
- BCC STAGE_84 e. @# F1 C) q" o
- ) q7 ^) y7 a1 ]6 M O0 ]$ n
-
. R% l" ?* P' Y2 r6 f$ z% E - ) }) t7 a9 R& t" Q
- STAGE:
4 g8 |+ I, o! n& y e' O - LDA #$00 m+ s e1 t9 @
- STA KILL_FLAG, L4 A+ p* m4 O8 c. T
- LDX #$00
$ K2 Y( J# \/ I$ Q! _ - ENEMY_CMP:2 n/ O( s3 U9 g/ C% J3 W) x
- LDA $0528,Y
* n9 p0 w5 f8 [7 e; l - CMP KILL_DATA,X8 R+ D0 E) H) G C+ `0 E* h
- BNE RE_CMP. _9 u: P/ Z$ L1 L
- LDA #$FF4 U) t! |4 ~* G* `
- STA KILL_FLAG% o% r# N6 R5 Q* v# z
- RE_CMP:
6 {4 e; t. w0 m( I6 `* d5 a - INX
" c2 \1 T7 `3 W! B( } - CPX #$06" g% h1 o. X) W' \% y Z; j/ G
- BNE ENEMY_CMP
! M2 e3 I( H' I2 X9 S' W* a4 n
, H0 y) ?. @, z; b9 \
% H# B7 _8 @; ^7 v+ u- RETURN:; T# h% G% S7 g7 N7 |& R$ j
- RTS6 D& m: E3 Q( R( W0 [" K
- ' ^' {4 s4 S0 J! E& t
-
$ F8 `- ~' C! _6 R8 N8 m" }: r -
' b* t: E# ?( B3 E2 a; E - ENEMY_DATA_1:: n2 h1 D2 P, x( e, N
- .BYTE $02, $03, $10, $11, $FF, $FF$ ]& y& x9 P' r) K
- ENEMY_DATA_2:
% O( n; r8 R* n$ ~( l' `! f - .BYTE $0A, $10, $11, $1B, $14, $165 \# J' |0 S& P% Z4 q4 C F Z
- ENEMY_DATA_3:0 F. [# ], T5 t0 F8 s3 ?
- .BYTE $02, $03, $14, $FF, $FF, $FF* G6 Z% P$ k4 K: S; {2 a. c
- ENEMY_DATA_4:, D @% i( E, q. m2 |
- .BYTE $0A, $11, $14, $16, $1C, $1D4 V, o; |3 v! Q7 a
- ENEMY_DATA_5:
3 V6 o0 N/ l# T; A - .BYTE $02, $03, $12, $14, $16, $FF
9 a/ t! ?' [2 S9 L3 R* O - ENEMY_DATA_6:
' [! M4 E1 b2 G - .BYTE $02, $03, $13, $FF, $FF, $FF
3 t, x3 V2 T: E: E0 S$ d - ENEMY_DATA_7:9 t$ L/ z0 r7 {4 |2 w- ]
- .BYTE $02, $03, $11, $12, $16, $FF2 z4 X! F+ ~6 J% q( v
- ENEMY_DATA_8:
: W5 ?1 `6 G u/ C1 S* I - .BYTE $02, $03, $10, $13, $14, $16
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|