|
本帖最后由 yandagui 于 2017-3-2 22:17 编辑
4 l! |- e7 S- Y( ]( T }9 H2 K! \5 B, h& Q* ]
[遗作][魂斗罗][自杀2017]2 n9 i( A/ n% S# v1 R- j
2 b( L" s4 _1 z3 N9 a# q. W5 E# F时间:2017.3.2
8 U9 X5 F7 Y0 o3 R+ m# `0 U* _; H; \作者:FlameCyclone
2 j! R1 ` f% y% e- k0 s5 _内容:
- e6 h( t/ L9 a 杀敌时除了过关必须的敌人,其他打中时我方角色一律死亡,喜欢挑战高难度的变态可以自己受虐了.6 W- M @3 F) [( e) Y g
+ A! w/ }: I2 {+ E
flamecyclone.ys168.com
+ g/ l$ J* H& K: u- L! Nwww.nesbbs.com
" b' m4 q( J; a- .ORG $FB50
" _9 Y/ `) H) U; w -
; a$ J/ v) \& T. A2 V - KILL_DATA = $0780
2 ]! C3 k6 G& k- o - KILL_FLAG = $078F
5 C# Z6 i: D# _7 O1 x - # b+ r& ?) T* k8 d3 T: ^ A# z% L6 T
- LDA $033E,Y+ J! l, P) z& d: z- a4 G6 P7 i
- PHA
8 V! @+ ^" S% b: o! }8 k# v - TXA" V9 o" K3 s( E. L3 y8 w! ~0 S
- PHA5 X+ r- v) ~' |! E1 W" l
- 3 O. F3 E4 S9 p! ^. H
- LDA $8000% L$ S( A1 b0 _) T
- PHA
. e! Z ^$ q+ y1 i2 W( G! F( F - TYA9 X$ {* k8 y. [7 ^* G
- PHA
3 e' y6 f! a! @* M* [ - LDY #$00
/ _/ f9 E3 ~. D, ]2 C2 a- Q" C - JSR $FB21! Q7 a% _2 x# e; ^* ]
- PLA
* E V- q. J1 z) R8 j, B - TAY* C2 ]/ \) Z1 L- w6 v
- JSR $A000
2 N3 W. K2 z" U+ X - PLA
- e. r! I4 z4 p1 G6 \' z o - ORA #$01 o2 y6 \6 T) \( u) H% O8 S- T
- TAY
( M$ ~: J! Y S' Z! y) G8 p - JSR $FB21
: i" Z! B6 u; |+ k- f9 X1 Q -
; F1 S5 ~" W+ [0 K: O+ E. V: i( j6 Y - KILL_START:
8 f) m7 L1 d% R - LDA KILL_FLAG5 \4 x. P$ i) x3 ~( T F3 C% L
- CMP #$FF; s! V' ^( A% L( d
- BEQ BACK; r& S# W8 I2 @1 u- }2 |. A
- P1_CMP:7 E/ h. T+ M& K/ K& b! o+ c4 A" {
- LDA $0090
8 N- T1 }, p2 P: ^ - CMP #$014 y' J3 ?) l$ x
- BNE P2_CMP0 m2 H3 E5 ~6 C
- LDX #$00
+ M/ h8 F8 p; v& T# h% ?/ J: e - JSR $D474/ x1 C$ `- ~$ B8 _; `. R+ K
- P2_CMP:
3 u1 k t3 E6 n. s - LDA $0091
) a% W( {6 c' R6 p% _9 |( n - CMP #$01$ g- N( D. X3 _/ S
- BNE BACK
- W. N+ c! E# o1 w - LDX #$01$ o- \" G4 F5 s1 g o* D0 @
- JSR $D474" ~/ ?3 k/ U& `3 S
. @3 w( u& e" S- * ^0 q& w3 E+ o+ _" X
- BACK:' x5 h& D8 O/ h
- PLA
! q& ]# N2 H; U3 e8 q( M- |9 x - TAX% d m; a; _1 y6 C
- PLA
& @6 \/ p K% C6 a6 Z: a - RTS" v m& Z$ f8 S; y# _. H4 y
& c3 Q8 z0 w1 y8 K5 I! {
$ L; T: h5 [3 P& ?- .ORG $A000, b2 ~. u4 _, }% L$ o" a
- % M9 a; V; y" l0 v" d+ T* }
- KILL_DATA = $0780
4 t+ @4 ~ y" U; A# y6 d - KILL_FLAG = $078F
/ ^8 Y$ L6 e; M# C5 Y1 z4 t -
7 F0 R. F3 h; @/ Z. r2 u8 Q7 h - STAGE_1_CMP:; F! t/ R3 x! [: K' J; p. h
- LDA $30
( ` S+ `9 E3 V6 G - CMP #$002 W+ u6 C7 t4 h- U- v; l! m! }
- BNE STAGE_2_CMP
& m) i7 i! F9 t0 |! ^5 g# R8 O7 ` - LDX #$00
6 t/ u9 c7 {0 e/ z) v: i4 U% i - STAGE_1:4 }& ^* V7 r3 p1 I8 i: A% }9 H
- LDA ENEMY_DATA_1,X8 e2 \5 d1 e$ M" \7 G
- STA KILL_DATA,X- i- P+ U- u$ t
- INX
" g+ p2 f. F( t - CPX #$06
& E4 E0 ?. w& ?) p" T1 L/ S - BCC STAGE_10 A. `) \" M- T2 ~. u% W
- STAGE_2_CMP:9 [% `5 C2 J: y& K
- LDA $30
' y5 ]! y* s7 f& m+ l - CMP #$01- y' l6 S, P" A* k# u- j& B- S
- BNE STAGE_3_CMP8 W2 r" i9 V& ?' z/ Q7 s
- LDX #$008 h2 S% I) H* l# Q; p1 Z: @
- STAGE_2:+ v. U+ D, `9 d; C$ r- {0 z+ Z
- LDA ENEMY_DATA_2,X
9 A9 N( _0 L( z) c - STA KILL_DATA,X
8 E% p# C6 y) m; a5 J; } C' v9 a - INX
! U$ H4 l% ]% i! e - CPX #$06
% s* Z6 R/ q) V q: d - BCC STAGE_2
, L! [. Z2 ~2 \3 @' o4 u$ L - STAGE_3_CMP:( z( e. D, ]7 h( n, p8 ~
- LDA $30
- `$ P' y+ M5 r4 }, B9 H" b* A - CMP #$02
! J% T9 O0 p6 t" u - BNE STAGE_4_CMP
4 X# T* J f# ^2 e, J - LDX #$00, J6 S1 t9 o! p& c0 L. \% _5 q. R
- STAGE_3:) f2 m1 q* r& \4 y6 ^/ o! g+ N
- LDA ENEMY_DATA_3,X5 E- {4 F) E2 Q. x8 B
- STA KILL_DATA,X
6 G3 I: Z. b. i4 @9 z3 ?7 e R - INX( v6 X( j6 y# O( l; x
- CPX #$061 |( ~- U/ E. _ @" t/ D8 q
- BCC STAGE_3
( }& d, O4 U+ i1 ~ - STAGE_4_CMP:
) i2 w% v T2 V; L, l1 w' O' h8 h - LDA $304 J1 h* c& {' ]( Q8 A# {: t- a$ @4 D
- CMP #$03
) u+ F# x X' c# ^/ K ^ - BNE STAGE_5_CMP
" G. p6 W' G+ `: Y" M" e1 `+ u - LDX #$00. {* }; c* W4 c7 [. ~7 y
- STAGE_4:( c& ?! G9 f6 D2 Q0 u3 f2 w
- LDA ENEMY_DATA_4,X
4 ^! j% f& a' ^1 F" b - STA KILL_DATA,X* R; ~3 R' o- F2 C2 o
- INX" h" J$ E8 |: B- C: {3 Y
- CPX #$06
$ M' U+ H% P4 n; H - BCC STAGE_4
. A! a7 [: L9 g0 n9 x% O4 N" G - STAGE_5_CMP:
# I) f9 C- u. D+ ^$ B; c - LDA $304 e* S) H N+ b# V
- CMP #$04
+ t9 v8 j$ u( Y/ B( ]+ D - BNE STAGE_6_CMP
: E. _+ p% M2 H - LDX #$00
4 H0 a6 z+ C' [, G* T9 k' O0 ]5 \$ Q - STAGE_5:
$ `" L( K/ Q4 u: N - LDA ENEMY_DATA_5,X* U4 X) s1 Q$ \; D
- STA KILL_DATA,X
, w/ {( g& `4 }4 A7 i - INX
( p2 ~+ h7 o: c- h6 n# {% D& \ - CPX #$06
- C) _" w1 E6 h# H- @* ^/ O - BCC STAGE_5# Y7 s5 F9 c( M5 k6 p) S4 p
- STAGE_6_CMP:$ o; C* z- E* D' }: k4 z0 U
- LDA $305 p$ k* N E' n, F0 f, M
- CMP #$058 r2 e3 [/ d2 z* G L. }0 m7 t, t
- BNE STAGE_7_CMP/ @1 ]7 [3 m' Y: f1 E% X ^
- LDX #$00
# j5 b, Y0 k) m; @2 y% s - STAGE_6:
+ u c% f' D+ f9 U# O# m, J; ? - LDA ENEMY_DATA_6,X
/ \! x# N8 e4 E# D - STA KILL_DATA,X+ y! m) \+ k6 _$ X& E5 j
- INX
' F k, X7 j" g, Y Z3 g& ^ - CPX #$06
2 g0 I/ w, L! Q0 i% Z& S0 Q) I - BCC STAGE_6
. s3 u! j r* ?$ F( T - STAGE_7_CMP:! D- ~" c) z7 [9 F' J& l8 G
- LDA $30
" [5 S1 ~' N% X* N) f, w - CMP #$06* ]% @# E7 _4 W* B7 ?5 B( a
- BNE STAGE_8_CMP, m# }: J. d) ]
- LDX #$00
& O" E! o* _0 U8 w0 z& }: { - STAGE_7:
) v& l, [" C4 ~9 v M% W - LDA ENEMY_DATA_7,X
, i! m5 }& P6 W1 ~9 k; D4 I2 G - STA KILL_DATA,X
+ T/ M$ H$ ^% N% {4 V4 r& U - INX
3 d, W, u- Q' `% ~ - CPX #$06( @" L8 M6 {9 I8 S# Q7 }
- BCC STAGE_7, g; G8 g' T6 c8 b, x
- STAGE_8_CMP:
5 g" H9 m9 Z" M( U& P4 t7 _" Z) d" p1 L - LDA $30# A; I) V) J4 l8 a
- CMP #$07
* r* U. }% g" }* \, d! m; x1 Y - BNE STAGE4 d3 [! S) r; p4 V" R
- LDX #$00
* i5 o* ^+ v7 W0 } - STAGE_8:
9 X8 u+ y! N- h G$ c - LDA ENEMY_DATA_8,X- ?. G: X0 l; V0 n# k3 T! D" S
- STA KILL_DATA,X6 ]/ ^8 T& o( y: s, N& v
- INX
; ]* B) e* h! S: g - CPX #$06
$ |3 x# @* r6 b9 ~4 y - BCC STAGE_8
9 x) Y j# W4 Q$ M7 j/ B! ^ -
9 B1 b2 }$ Z6 o! w - / ]* G# ?& {" K8 j
- & u0 ]# { T, M4 ?( T2 U
- STAGE:7 v7 M4 T( K# u! h, v, ?+ W
- LDA #$00
$ ]8 S: ?! q/ c - STA KILL_FLAG- o4 h% z7 a" R( V
- LDX #$00* \& V; A0 Y- f
- ENEMY_CMP:. T5 Y3 Y; R3 i' r# v* ]6 u; R
- LDA $0528,Y
- t. v) s9 V D2 D- a - CMP KILL_DATA,X( R5 u/ Z2 x7 C8 Y
- BNE RE_CMP
8 g7 ?0 Z/ I9 ?7 w - LDA #$FF
3 j: C) r t. R. ]& n! M# K - STA KILL_FLAG9 m' F) n" E6 a. D3 e2 e
- RE_CMP:6 v% v$ z w) @/ B' m- M
- INX
2 @( W* T9 P H# w6 _ - CPX #$06' o3 T4 i. G' [4 \" T
- BNE ENEMY_CMP
- O2 `; q, J- J - : u& I4 u1 V$ @' J; y8 J9 D
- : i. e$ T. j3 ~& {. k7 n
- RETURN:
9 g0 s7 U1 ^- A8 l$ h+ x. J - RTS' B/ O9 @' ?& `' ^. N+ e- M6 |: l
- 4 l9 g r5 T8 }& F- d6 l
- : y( H6 ~, a; a
- ( \+ ]3 m9 i5 G6 f! p1 b; W
- ENEMY_DATA_1:
, l' O$ F0 l# q, l/ z( A9 u - .BYTE $02, $03, $10, $11, $FF, $FF
4 }7 ?4 e/ T. @9 ^% k5 d& N3 j - ENEMY_DATA_2:
: u; \7 K$ D4 g* z; I2 n - .BYTE $0A, $10, $11, $1B, $14, $16
O/ h9 b8 R8 I9 v - ENEMY_DATA_3:3 d% T( V8 u# |1 M4 `
- .BYTE $02, $03, $14, $FF, $FF, $FF
8 \1 |! O, l, I7 ?1 a( b& {8 x - ENEMY_DATA_4:1 Q# U" p% f p
- .BYTE $0A, $11, $14, $16, $1C, $1D
3 g, m( V( l, @- L - ENEMY_DATA_5:3 u$ n& o; T8 f2 @0 x
- .BYTE $02, $03, $12, $14, $16, $FF
c: ]3 A) j, W - ENEMY_DATA_6:
9 n3 Z2 x8 h4 m - .BYTE $02, $03, $13, $FF, $FF, $FF
# X5 }9 [% k6 V: `2 H5 O7 u - ENEMY_DATA_7:' q r4 x/ @- X; ^1 a0 r5 y) N
- .BYTE $02, $03, $11, $12, $16, $FF
8 E3 Y% g; v8 Z1 T6 a# U5 L/ \ - ENEMY_DATA_8:" N& n% U4 \% ^7 H' \5 n
- .BYTE $02, $03, $10, $13, $14, $16
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|