|
本帖最后由 yandagui 于 2017-3-2 22:17 编辑
) n/ N9 c5 F8 Z; n) c- \* t
8 g6 p) _6 n0 j6 }0 |[遗作][魂斗罗][自杀2017]$ y0 b4 |1 ~8 q1 W
; e- C& m+ j: ?$ u& E" }6 M$ f+ R+ Y时间:2017.3.2: i* P% J$ H: j3 `# i" Y+ l5 j6 L
作者:FlameCyclone! ~5 N1 o, s9 y7 l! J6 _
内容:
" J- x9 ~& |- |* p8 } 杀敌时除了过关必须的敌人,其他打中时我方角色一律死亡,喜欢挑战高难度的变态可以自己受虐了.
6 ?) n5 S$ W( P3 I) R' q/ b: a
2 T' b2 Z7 F( E# Nflamecyclone.ys168.com
2 G/ v9 J3 @5 M" L( b; Cwww.nesbbs.com \' l5 J& O1 T4 b4 s& J
- .ORG $FB50) O3 q4 l* S/ `+ r8 y; Z! {
- " i& Z+ J: \! C) Q
- KILL_DATA = $0780
# v& n$ l3 M4 e - KILL_FLAG = $078F
# } Q" P! L$ `0 f }# T0 i -
( I; A8 s" z& u2 D ~4 I9 X, u - LDA $033E,Y
6 N4 [- @0 Q$ F! E' H" B% p - PHA
9 K: B$ a' p; Y3 P, }# Z - TXA- }* m, y2 ]! z* Y ~1 A
- PHA- u1 ]& j. b8 l' ~( p/ _
- , ?' s; x6 ?. l" i+ p! X
- LDA $8000
7 f1 S& a0 C# [" ` - PHA
8 I9 {2 f* z: J% ^# r1 ^+ \5 s& q - TYA
- [3 W& D7 E8 s/ U" }; e; L - PHA
+ G) f1 h$ X- }4 B) z( u - LDY #$00
# B2 o y, p, J1 ~3 y - JSR $FB21
2 S' |) y( N* D! C* [$ g8 F - PLA; Q1 k* F9 l6 l( U0 N
- TAY
. ?) T E- T1 U4 L0 n( \( r" G" B - JSR $A000
7 [0 l }1 N7 Q# }* ]# g - PLA
. C' g2 u& ~; `% p* k2 f6 h# j. C - ORA #$01
; e6 j" ?* ~7 j0 Z& s - TAY
, |- j5 D" Q' H% b/ x$ k. E- D m - JSR $FB21. x0 w6 k' C% G. M- E+ O+ p
-
' w1 s% A& z7 c - KILL_START:& A, @) f6 j" w; C
- LDA KILL_FLAG
3 {& Q+ r8 ` D9 c! {2 J8 Y - CMP #$FF
+ Q7 c% I4 D- M& U) [: {( I - BEQ BACK
8 s/ \5 M/ ]. W$ n2 G2 l4 n - P1_CMP:
; w) f5 M4 k* z; p - LDA $00901 c; v% x" b2 L
- CMP #$015 c8 o6 Y1 A: m5 l
- BNE P2_CMP; U5 b( k/ l* H$ G( I' ?
- LDX #$00 `" b# V, S5 n2 t, R) \( S
- JSR $D474
+ [& N) I+ {: e6 ~* c; M - P2_CMP:* k+ @) _+ j: Y" {
- LDA $00917 V! S) Q# g5 j' n' o, l
- CMP #$01( f- N7 ^1 V4 }: {5 G! y0 E2 t$ s- D
- BNE BACK/ E2 g' i' I- H: o! U, h4 T [3 @
- LDX #$014 H# r+ g& K, P( l
- JSR $D474
! B1 F5 k9 o @+ |* w+ [2 ^) @# w - - o8 f7 H( {( |' q
-
2 I% W$ R1 [( e/ Y) m2 U" @$ M - BACK:
* C3 C; k( O' O, s* f& {8 R* ]' Q - PLA8 M. _ l8 R+ I: u# x9 f* L
- TAX
) h9 _2 H; i V" p ]2 c( r - PLA) Z7 T8 _4 D! R! a2 M4 x( b/ c( G
- RTS1 J. ` l* u" D
- 4 b2 O, F( E3 e2 g7 |% R, c- [
- 1 f1 X J' I: \5 `7 ^3 v: q$ o
- .ORG $A000* Y# B7 h/ G3 n- I! P2 ?; O! }, A
-
6 E8 a' I& B2 |, o. j# G4 F& j; s& {5 O - KILL_DATA = $0780
* p+ F2 T! Y; D# \5 x - KILL_FLAG = $078F+ r. l$ }1 `4 e4 X$ \& l
-
. K' n$ F0 E2 W" B8 _% H* a - STAGE_1_CMP:
7 Q) y2 c+ {# h- J+ x - LDA $30
" G% L$ i/ h% t$ Q - CMP #$00
5 e8 ?3 K+ b" [# k5 U( M0 u( H; |- Z - BNE STAGE_2_CMP; ]+ |8 U+ e, Q# S: O+ j
- LDX #$00) D& p5 s& I/ C$ {& k+ s" @2 x
- STAGE_1:
+ k B' I7 y/ z d - LDA ENEMY_DATA_1,X: H3 t! l0 y% p; x" ?# D
- STA KILL_DATA,X, p, H0 k! r4 c* C, b# b
- INX9 e! `- [7 @7 o7 v* a0 U0 ~
- CPX #$06
3 F8 i2 ^, a0 ?/ J! E9 Z$ M0 |; E - BCC STAGE_1
7 T- D: `: l: c% `3 j; L' b - STAGE_2_CMP:
1 q8 F# U5 y( s. e- O* z - LDA $30
7 l9 r" s o8 q- B/ U - CMP #$01
+ b0 N7 ^0 S, \! \( ^: t x8 A$ [5 | - BNE STAGE_3_CMP
) l. Z) ?" s0 E" F7 @- u - LDX #$00
* J$ j7 b( r {- g - STAGE_2:. [* c" ]. x/ P8 x
- LDA ENEMY_DATA_2,X4 V; Z0 m2 E+ d" c: J
- STA KILL_DATA,X1 n. ~ i7 i, @/ A6 L
- INX
" W% r5 {" b% C; X - CPX #$06
9 d9 `& } W% g0 P3 F0 o. m# n - BCC STAGE_2
" a0 k# f3 H( { - STAGE_3_CMP:* S+ p- L" O5 U/ Z
- LDA $30( R$ v5 p q( n+ r) Y9 a6 S- a
- CMP #$02$ a6 n8 E, w. {- y
- BNE STAGE_4_CMP0 ~, T% M4 U1 J
- LDX #$00
! ^3 { r( t# ~ r; S# J( o - STAGE_3:
\$ ]7 E% x( ^- t - LDA ENEMY_DATA_3,X+ Z! v# O1 i3 f, D) s0 q
- STA KILL_DATA,X; A7 w1 `' x# W, O
- INX
2 X7 W9 ]" h6 N5 v$ i# S. p - CPX #$06
/ b! w* }) z- t2 m7 |9 ? - BCC STAGE_3
& x4 e( `. y0 R - STAGE_4_CMP:0 v! a2 P% N1 l" k, w5 o$ }
- LDA $30
4 ]4 c% W" p0 s6 H - CMP #$03
/ G! g) l( U: g1 V7 y- d - BNE STAGE_5_CMP
6 d+ ~, M% K3 a$ ^+ r6 C8 B- g - LDX #$00
& b: M. ]& y; x/ g' {1 p# f - STAGE_4:: j Q* Z' ^# e$ J4 @5 ?: w" V
- LDA ENEMY_DATA_4,X
/ U$ s8 t6 i8 O, n4 O7 U; ? - STA KILL_DATA,X
/ u2 H; |, c# M$ n% ~% N - INX' Y& c. T' }1 R) C& ]" R
- CPX #$06# C) c2 z: y* F" x y
- BCC STAGE_4
6 b. g& w/ S) F - STAGE_5_CMP:
5 x9 \$ @' B" s5 b - LDA $30- K& a: M2 N8 m. R `
- CMP #$04- \1 b9 I4 v+ G! g6 N! w
- BNE STAGE_6_CMP
' q) q% n, J0 F# V+ U - LDX #$00$ u! H g$ f, k: ]
- STAGE_5:
4 A; m- }% V, i' N" G - LDA ENEMY_DATA_5,X* \' R" T: I( a9 B
- STA KILL_DATA,X4 G3 i8 D1 Y- K7 C+ e
- INX
0 S' b1 H& _6 U4 D - CPX #$06
2 y' q4 Y o5 ]& s' h - BCC STAGE_52 Y. }/ M7 q2 R6 L* J
- STAGE_6_CMP:. c/ ~4 c; v- G7 u: i# S; g
- LDA $30
7 I6 X' {2 V$ ]; `/ E - CMP #$05
0 h3 b8 ?* i2 T - BNE STAGE_7_CMP
5 D* K% l; C4 Z4 }8 I9 Z - LDX #$00
8 y8 W) J9 z& x7 t+ ^ - STAGE_6:
. L% B! X* m' V9 |8 u - LDA ENEMY_DATA_6,X% P7 H8 `5 P! J! k' u* g
- STA KILL_DATA,X# Q2 k2 L# D- d0 t, i; g* v+ g' e% u
- INX+ G6 ~: x8 ^/ L8 I9 J
- CPX #$06! j7 N- A" w1 [; \) W8 \
- BCC STAGE_6/ i/ E' o5 \& ~8 O
- STAGE_7_CMP:) r V7 d3 Q& k# l+ R
- LDA $30
; U% i2 T# ^% k$ C. Y - CMP #$06: U( P! ?- p1 `/ d
- BNE STAGE_8_CMP5 o, M' j' s% {$ `, i O/ p
- LDX #$00! X' y3 o% C/ m) s% @
- STAGE_7:; C2 ~' M. ^- [: c2 _
- LDA ENEMY_DATA_7,X6 J, @: o- Q+ @' M! k8 G) o
- STA KILL_DATA,X
$ y' e1 g; U# n8 {6 Y - INX; p1 f9 y/ I+ R( u9 M$ F" \8 T
- CPX #$06
* P, o7 e- U/ q2 I% h) V5 q - BCC STAGE_7
2 n% j+ h! I+ y5 h, h7 p, o1 ~& o3 ~ - STAGE_8_CMP:
) c# j$ Q8 k( o5 O) P" v! { - LDA $30
. x- y7 |) h3 l6 o) u - CMP #$07% n0 g/ q( L+ z6 g
- BNE STAGE
' t5 s+ M; O o7 W* q9 t# S; @ - LDX #$00' c2 C G7 u' p2 P6 G. o
- STAGE_8:2 D9 s1 Z* S% z
- LDA ENEMY_DATA_8,X' f! s7 Y! v# W' E, N
- STA KILL_DATA,X; \( Z% k4 h( } E9 Y
- INX
2 [0 ^+ ]# V9 ` |$ ]* S' s* p - CPX #$06- L, u# D# c- x1 u7 T! y/ o
- BCC STAGE_8
! r9 p. n% T7 e6 j+ ?( b: D - 4 O2 `! A; w% M2 u2 N* l+ [" ~, p
- 1 V. ]! n% f& {/ @' E" A
- % ~& k$ R3 Y+ b. \+ S- ?
- STAGE:
4 p2 g% {5 C. `: p - LDA #$00
# R, t# N+ n% u/ a2 ]: m) _ - STA KILL_FLAG. x5 z3 i+ G& n6 r- `) L
- LDX #$00$ N" g, u. o' W X8 C6 g+ u# D
- ENEMY_CMP:* U) c. r. b! {: a n
- LDA $0528,Y# k5 m. E+ g$ y" A) T9 A
- CMP KILL_DATA,X
h3 U% `. s5 V$ D& P" L/ E4 m - BNE RE_CMP
) J" X Z! M& [0 [: ]3 r2 q9 I - LDA #$FF5 ?1 X7 m# J; m
- STA KILL_FLAG
! x9 S/ x' x4 a9 C/ j - RE_CMP:
9 W. |) E# V9 v7 g! H2 w! y - INX6 I) G# c/ A( X U: F4 P
- CPX #$06' S5 H& v: [2 m% p
- BNE ENEMY_CMP, H" j3 e; B' k- M" u, c
- 4 E, i9 D/ S6 B, m
- + u) N" I' t! {2 g4 ^4 k* \
- RETURN:: c4 C+ V! w6 R2 ?; R
- RTS
4 }% u6 K( n# @5 r5 W. `
; P6 j7 u& {. |-
7 F D0 I+ }: O7 x( m" A! {) g. M -
7 M. w- ], |$ w. I U/ F6 G - ENEMY_DATA_1:
: |, ~! Q- B- ?0 L0 r1 K& L. X - .BYTE $02, $03, $10, $11, $FF, $FF
h4 t/ B9 V# O" Q - ENEMY_DATA_2:) r) \. S; `# v, o5 m1 y
- .BYTE $0A, $10, $11, $1B, $14, $168 ]0 z( |' f) ]$ M' @
- ENEMY_DATA_3:+ W7 ?- T4 f j: G) e7 ^/ H/ H# D
- .BYTE $02, $03, $14, $FF, $FF, $FF
' @+ S' q4 S; B7 G: c8 | - ENEMY_DATA_4:
' V9 V* a" N* P. E- `4 X6 c+ p6 q - .BYTE $0A, $11, $14, $16, $1C, $1D
# Z& C% n+ G" `' Q - ENEMY_DATA_5:5 \& M. j1 V9 W; \2 |: B
- .BYTE $02, $03, $12, $14, $16, $FF7 W7 T' ]2 x% |- v; D
- ENEMY_DATA_6:
& o6 C% d2 N& L5 b - .BYTE $02, $03, $13, $FF, $FF, $FF) H% k( ?- g2 m' x3 L0 Q/ v0 ^
- ENEMY_DATA_7:) |4 N6 T% p- e% L7 L6 q+ F
- .BYTE $02, $03, $11, $12, $16, $FF
( J& |5 t1 O9 O, ]8 x _! N% X2 v - ENEMY_DATA_8:
: ^5 g) T: n( T1 ?/ N - .BYTE $02, $03, $10, $13, $14, $16
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|