|
本帖最后由 yandagui 于 2016-12-16 20:10 编辑
' s' b$ ^: S A0 z$ ~9 v' g
( w4 l! B. |6 r[FC][超级魂斗罗][互相伤害版][旋风修改][方案1]
) N4 j! j5 i4 C0 e# d, W5 O1 t
" K! c$ M9 \5 K' M, T时间:2016.12.16# B& I5 i$ T v, W
作者:FlameCyclone
+ l8 j) `. n1 G内容:0 g" l" g3 d7 x9 Z2 G; Z
6 u" T! D1 x5 f5 [( r6 T
互相伤害: P1与P2可以互相伤害了,玩了这么多年超级魂斗罗,看队友不爽就开枪打死他吧(笑抽).) x# T8 P$ X4 J; p% I5 K& E
; y+ S1 O6 p8 f6 H( ^0 I% s
备注:: R5 L2 K! S& S2 D. }$ f
S弹有4发子弹P1与P2共用,因此共享部分鄙人将其设置为无害,否则自己被自己打死可不好玩了.) o9 F% n5 P4 K9 y7 B! h
# x0 N( j2 _' B+ V3 G
8 {0 L1 d" q/ m) K6 [& ~; F; @
5 i. Q* L S- P5 Z5 B& o6 O# [欢迎转载,但必须注明出处, H$ K& g* Z) C0 V+ v
FlameCyclone.ys168.com; j7 K8 [: E- u3 y, N5 c, Y
- .ORG $FF20% R! f* s9 g* |, j( G( C
- $ h1 ?" W$ E: o' {; p
- STA $F5,X4 X% l+ e4 T0 ]& f: Z0 k9 F, N
- STY $F3,X
! w# z$ ~) a) I. x5 d! ~: S - PHA5 Q7 @. E3 ^# ~/ T, |5 Y4 T0 {
- TXA
+ h$ S5 T3 N2 L+ B1 _% E% M# s - PHA
( v7 y$ W3 l1 b6 l - TYA
; o ~$ s, O! Z0 p! | - PHA
# F- v5 B( t( t Y5 W - LDY #$03
B: o' f" U- ] - JSR $FD7B) m6 p/ M) K4 m$ }. ]7 T! b: M
- JSR $BE00" p& ~' W; |) n5 ?4 ]4 H5 G0 P
- PLA
" d) {6 \9 O; v3 E5 m( G - TAY0 t) l6 D* G) {/ t' t9 K
- PLA9 J1 ]% N. R, D) k
- TAX
6 J1 a! n* z/ ?: X8 J - PLA5 t# I: I! K* Y4 \7 Z5 s, |) x
- RTS
复制代码
, c5 C: e! `# q7 ~- .ORG $BE00
3 G, V& c2 Q4 e2 r - 2 l1 R5 |" G$ t
- CPX #$015 W$ y, W6 R# `. Y
- BEQ P1_ATTACK
2 d' C0 t7 |, }% D0 T1 M+ E4 w - JSR P2_ATTACK
1 @' X+ ?2 ]4 k" V - P1_ATTACK:
, M1 H3 Z3 Z# m% T - P1_DATA_PROTECT:
" i. L0 F" ] T& q - LDX #$008 q1 g1 Y2 u5 v6 z3 B( @+ |$ V3 ~
- LDA $054C5 p" q! s/ T8 `- j. b4 L* X
- STA $07D7 x2 F3 M" K$ s* u
- LDA $0532
0 @2 r& G! d. @ - STA $07D8
/ S# s6 X- g E: A0 w+ s. p - LDA $0518
& w0 g; S+ T! T% | - CMP #$169 H9 T# o, J1 u' \: h: N2 j
- BNE P1_V_W' V8 W/ r" p# \" c: O$ r
- LDA $07D8
( e# A7 T; }: E8 X) ?6 C - CLC. B% R7 Q6 D t s: b# o
- ADC #$08 b, y b5 y! \! N# Y+ Y& C
- STA $07D8" u* x* O) N( @1 w4 ~ Q) v( N
- P1_V_W:
: H6 c5 P& m. O9 d - LDA $0592,X
" z5 x% Y* q4 t2 F+ {' W - SEC3 `- a! p: R3 _8 I# e
- SBC $07D7
) Q+ U& Q- F1 G6 D" Z - STA $07D0
4 b8 h0 y- x( _9 P% l3 v. _2 {9 l - LDA $07D0+ }# c$ P4 [. K H: j
- BPL P1_H_W
1 ~; N, T- \9 i9 e' d: o, R - LDA $07D7
. K0 A0 ^1 a6 T8 e. }( Q4 S t9 r0 _ - SEC
' I d) F# Z3 A3 L# e5 O - SBC $0592,X$ ^5 z4 _* }# o) F
- STA $07D0
0 X. K+ U* D) g' o& x/ h- R - 6 E+ i9 L5 ~1 [, ~3 n
- P1_H_W:9 |# D) M5 S+ E0 k1 U
- LDA $0582,X, }% @2 F) R8 U8 F( f% k& P7 B
- SEC9 O3 b) S* G: x& W% c
- SBC $07D84 f7 w8 y. {9 G9 \1 Q, G
- STA $07D1
+ l$ Q# N, z6 x ~$ S - LDA $07D1
+ h# T2 ~( q$ [& o, G - BPL P1_V_CMP, ]( o+ T: I& _; ]
- LDA $07D87 i6 ]. w) p: f$ ~* l
- SEC2 }6 p8 |3 I2 N/ M5 `
- SBC $0582,X
4 m& e& g* _+ \! j6 l - STA $07D17 z+ O* k! U1 o
- / E/ @6 B+ C+ {3 h, @$ ?7 P- o- \: s- j
- P1_V_CMP:- J5 j7 ]% B7 U9 `, {5 {" U3 _
- LDA $0518
3 b$ i @2 W+ `) S$ ]5 s: t" H - CMP #$16
; \' z* `4 _$ X' f4 B; J* o0 g - BNE P1_STD_V0 i8 J( s5 c3 ?% }
- LDA $07D0
& D9 }( w6 p' Y+ G/ } - CMP #$12
! M0 M) }, `1 U0 R1 S1 F# d8 W - BCC P1_H_CMP
0 y1 y' o1 l0 a/ Q0 x - JMP P1_ADDX I# G" {$ S$ R2 Q7 a% h, i
- P1_STD_V:2 n8 D' l. ]8 `/ p- c6 v1 P2 X; _+ i
- LDA $07D0
* y, ?. r7 n& j' I/ P7 R - CMP #$08$ ~0 U, Z( A; r+ Y, j
- BCS P1_ADDX p& X: l+ n5 S: c
- P1_H_CMP:
+ X6 ^: {7 x. M, T/ _# i - LDA $0518
2 D( D- i- p. Q - CMP #$16 |; o8 U9 `: s
- BNE P1_STD
, X5 k0 S# y% D. H3 k0 a - LDA $07D1
( Z6 h! i0 J+ G( P5 i* ?+ M - CMP #$08* C% a! z# y' r# `
- BCC P1_DIE
0 \0 t# t# t- _ - JMP P1_ADDX3 D+ @9 U ]) P: I2 i' N
-
+ P) m# P! @' O8 Q$ O' K3 n1 f - P1_STD:
3 P, }8 L& ?0 [! \3 c4 N+ W3 [ - LDA $07D1
+ k# g) s( v/ x1 x1 c. u - CMP #$10
% j6 n' L; |1 {8 Q" k5 e9 e( d - BCC P1_DIE
2 j, P% X% D1 V - 2 t+ O7 c7 r# M w }0 d8 {
- P1_ADDX:# @( R; v1 g3 M2 ` F& b
- INX0 G! O* k6 X5 h+ P
- CPX #$06( p: C0 H+ o0 W# z2 `+ S- G
- BCC P1_V_W
% L' ^& T4 K; U- @ - RTS) \0 C8 l3 J, A5 p; J, W: P+ S. \
-
# Z& P4 @# N4 W# I0 G8 H2 E - ' g8 G8 o% D7 `6 d
4 N+ l) N3 o4 T- P1_DIE: p& o0 m! k7 |, d$ L
- PHA
$ z4 w5 D% r) ^" b/ Q2 R - TXA
9 s8 @, B+ M/ o' x- \4 } - PHA# E: X g4 x8 Q5 Q
- LDA $05B2,X
" x X8 }6 d" a( g0 _: p - CMP #$01/ J \# g0 j3 _
- BNE P1_NO_DIE
5 k; I, X, }6 a9 P - LDX #$00% T( ~" G1 p4 |# ~
- STX $07ED9 O/ p8 \7 X3 T8 w* @
- LDA $D4. ]2 }! N* E% p. y$ x/ S
- BNE P1_NO_DIE1 Z. }- c$ d+ W, c6 b/ v6 r1 ~
- LDA $C4# ` M4 y n& U% r) ]0 ]3 g7 t
- BNE P1_NO_DIE! n4 I% V9 l( {( w0 [$ j
- LDA $A0/ C( r# e( C( [) b7 c6 n
- CMP #$023 g' ^8 {& ]& H' N
- BNE P1_NO_DIE( b+ W9 r) `- _& `7 q
- JSR P1_DIE_ACT- D1 i3 ~5 X' t3 g' C" u
- P1_NO_DIE:
6 J. c8 o& Y+ q' v3 k A - PLA
/ E" i7 l7 j. Y, y9 k: ?( I7 O7 Q - TAX' N5 d0 O) b( ~2 o X5 R. i/ \
- PLA
% [* p/ a' C+ n( t3 F w - JMP P1_ADDX6 M0 ?8 r# N: g4 J& Z" n) a$ l/ t
-
1 d* v7 z; a; \* }9 H. t - P1_DIE_ACT:( g( [! a, d# f
- JSR $F670
( E6 l; K7 Y5 q% R/ r K! ~9 M' F - P1_R:
$ k5 k$ K! I6 V8 y - P1_RE:
, K- X/ |. O8 w - RTS
$ M/ ?3 \& o/ W X, x; P -
9 l* f4 W" }0 |$ `* u5 y1 C z
9 Y6 U6 `* Q5 p O* A a) U-
) p/ P# j) N( d) E1 w - .ORG $BF00 ?1 Q' L( b9 v' E3 @) D4 F# ~6 K d
- + c0 H1 ?. t# s: K8 q6 w
- P2_ATTACK:
n9 S3 C7 k5 X. ?) } - P2_DATA_PROTECT:6 O2 Q; ^: Z- J5 D
- LDX #$00
' d$ y5 n1 o* B7 y: c - LDA $054D
+ [4 f5 e- k6 @/ [ ` G1 N - STA $07D9$ A F8 w; x6 w
- LDA $0533. J2 U) I6 g4 Y. ^" t8 ^ {4 C) P
- STA $07DA
: x& b e6 w6 ~7 |1 m' ^& z U - LDA $0519/ T/ O6 F, n' l& r$ T
- CMP #$16
- ]2 @, v3 W5 N. @: o: ~1 r! D - BNE P2_V_W
# s' V/ j4 K/ {6 \ - LDA $07DA
0 p+ v0 @% w. ^ - CLC6 L: O% L& }3 A9 N' j( U
- ADC #$08
0 ^* A' a* b4 g6 ~ - STA $07DA
% F* B% w! \* {: @5 K - P2_V_W:
( u4 t: y; k I - LDA $0588,X1 `& s5 c) c( |7 y1 P/ Y) H9 P
- SEC
3 U0 ~" |4 G* V4 w2 [ - SBC $07D93 U c& [' f) t9 g( K
- STA $07D22 g$ j3 ^3 U% o0 @. E# Q& D) y: i1 X
- LDA $07D2, z" n* H2 Q6 g" d; _; i$ ]" b7 V
- BPL P2_H_W
6 B. T% ?2 g; c; x5 P, Y; k - LDA $07D9
2 v1 g* {/ G) @ - SEC- T9 k+ v( X! q
- SBC $0588,X6 g6 f! D/ b% p. o- A' x% y; I
- STA $07D2# S: m7 |7 _" T h
' Q4 Y {& {! N- `4 s2 b- P2_H_W:8 `9 ~0 I9 v1 o" l0 i
- LDA $0578,X
4 Q9 L; E. n$ K% x( { - SEC
1 o; Y; m6 I3 z6 Y' R1 C - SBC $07DA
* u4 p4 B: N* |5 G) P - STA $07D35 a; f2 t/ N) N5 c1 j: m6 {
- LDA $07D3
$ p/ c O |6 A4 j5 t - BPL P2_V_CMP
) }/ \3 O0 a/ s, a3 k" Q6 Z% R - LDA $07DA- e! F! y) U* s& [# k% D6 U
- SEC3 j( K, ~; \# Y1 r
- SBC $0578,X$ e0 t' h. a* A9 F
- STA $07D3# o# m. A) _; A; J: L2 } {. _
-
5 e! Z1 k4 I, ^2 u$ [ - P2_V_CMP:
7 G+ E' o3 W+ @; b - LDA $05191 L, R$ W, O& I9 c/ A
- CMP #$16
+ r' L' G# f+ F0 l9 u - BNE P2_STD_V- I9 r! b: {0 R' U- {7 P( f9 F
- LDA $07D23 W0 a6 z# @* L( ?) z w
- CMP #$12
; i1 @/ m4 R1 [7 W2 G - BCC P2_H_CMP) @2 X# A) w# V* H8 O ?
- JMP P2_ADDX) n7 Z& g; l3 s/ b$ P
- P2_STD_V:% K7 R; `1 _, i) m4 n
- LDA $07D2
$ U- Y! ~! S( @# G ?4 O, z - CMP #$08# L: m2 {7 |; @* g) q+ X# e
- BCS P2_ADDX& i# M h7 X3 c" G" h# y& V
- P2_H_CMP:
8 p' V' w1 U9 ?9 p' T1 z - LDA $0519$ E) j% T, p7 x9 Z, \- p$ I
- CMP #$16' c( S( A5 A. A+ b' b
- BNE P2_STD a! c* x" b- u
- LDA $07D3+ G* N; s- Y* i0 M" K* p, n, |
- CMP #$08+ {3 t2 U, E6 x4 J! `' F" @3 x- S
- BCC P2_DIE
6 E4 O" S d! T! U - JMP P2_ADDX
3 T7 \# G( A" M8 X8 | - $ S6 u: ~1 L* V" M6 z8 n
- P2_STD:
3 x3 [3 j/ [+ d' L - LDA $07D36 {* M) ]5 v$ L+ T4 b, P" a. i
- CMP #$10! _" v8 s* S/ U& \1 Y
- BCC P2_DIE+ q2 p2 x: f$ Y; l8 l: ?) v
- 9 H% t5 H$ K2 }7 \ f- `9 D9 N
- P2_ADDX:! C/ _4 w' f8 f, a- b
- INX
: V9 t4 U9 g( H$ Y# V - CPX #$064 m) w* P( w; V$ @" d
- BCC P2_V_W& E- N3 {7 {/ j$ B! J( H2 q: r
- RTS
: @" U4 r. e0 r$ L5 Z - 4 u6 F$ r" |+ a( Y: o m! h& p4 |
2 A p; b& h) D6 d- ) M; \+ ^- l5 ^5 |( Y
- P2_DIE:' l. n+ H. s+ D' m! [
- PHA
$ m: N" Q3 h( t5 Q( \, m - TXA( G0 ^7 ~5 |$ l6 D' y9 T
- PHA
2 ]4 W% g, H. v" P; G; ?4 N0 r$ N - LDA $05A8,X4 ]+ M; a! k- K% j' f, A( f
- CMP #$01
6 |/ A7 I; z& K% R# @ - BNE P2_NO_DIE/ h8 a' H. i" j. f. _! b0 }: T3 J
- LDX #$01- P1 l. H8 p o# B7 _/ H
- STX $07ED; p# ~: `1 t/ N/ a
- LDA $D5
: u1 e3 V3 X! A0 o2 [ - BNE P2_NO_DIE4 M+ g- l$ A( L7 a$ }# i! U3 X n
- LDA $C5( e' H/ m6 y( h! Q6 l" `' ] M) e
- BNE P2_NO_DIE
7 t# y4 J) R( y - LDA $A1
1 k5 [0 I/ D" H- C - CMP #$02
6 f2 u# \: J: `2 L - BNE P2_NO_DIE
9 e5 @9 [; \1 L - JSR P2_DIE_ACT
2 p' K3 d$ M' C - P2_NO_DIE:
5 y4 J0 s$ W! L: h1 O, M2 S* D, k. J - PLA
8 C S1 D* p' J! I$ u. k! H - TAX
- L, ~# C+ b- ]" E5 M* { ^7 [ - PLA! b5 `$ ?* z) C& W e: p
- JMP P2_ADDX
& K6 |8 M& `% E c5 T4 @ -
) ?% G. G0 D9 G4 {$ f/ I: \ - 6 A7 N8 H5 ?, D, O6 c; g
- P2_DIE_ACT: W8 j7 Z% K; w0 u9 F& Y
- JSR $F6705 b* ?+ b- S8 n/ {5 n$ ^
- P2_R:
) [& L' i) \1 q - P2_RE:( \ O7 b& F: r; |" q. E
- RTS
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|