|
本帖最后由 yandagui 于 2016-12-16 20:10 编辑
% q U6 \( m( l9 [+ Y" F' H
% y& `4 \% N2 y- [[FC][超级魂斗罗][互相伤害版][旋风修改][方案1]
: _" Z: d4 j" m% o2 K- B6 F
% _# {# s9 r& S+ N X0 q时间:2016.12.16
3 l8 x/ d* g7 C; ], W, f作者:FlameCyclone
, d8 X$ _/ Y5 B内容:
$ O) \% B" e$ J9 g. f9 o# { `1 U" o# [, a$ ]
互相伤害: P1与P2可以互相伤害了,玩了这么多年超级魂斗罗,看队友不爽就开枪打死他吧(笑抽).
9 s9 a9 \7 x, h- `# y4 B
& {2 w! E' B7 @1 K0 ?' a7 T" u备注:
4 @2 D4 J% W5 X$ | i4 H+ _" cS弹有4发子弹P1与P2共用,因此共享部分鄙人将其设置为无害,否则自己被自己打死可不好玩了.
8 V- K* h, T" s2 f' r
6 f. d* ]9 @0 i. X: J" Q! F3 F7 b% x2 I( X5 }4 h* A
2 u- a0 i! X3 q% S欢迎转载,但必须注明出处! J* `. s+ k. ]$ G6 K- r) i% P
FlameCyclone.ys168.com
3 Z, W$ P% P$ L& ~* r- .ORG $FF20
( o* {% F/ F' s5 b
3 m( ?! Q! W% }* ^ Z, x- STA $F5,X) U& ]9 W6 `3 j0 }
- STY $F3,X7 f) {! v9 g7 P) N/ `
- PHA
( c7 ]( n2 l0 M% T; r: h7 I - TXA3 t" z3 x `/ a: ~
- PHA' e- j" ]3 P, B+ C' ]& r
- TYA
2 w! d6 ^0 G+ U - PHA! G' o/ `7 m+ J0 Z
- LDY #$03
% z L3 i _- d. P - JSR $FD7B. k8 F% |) v/ h1 _4 h, Y
- JSR $BE00, x ~ P/ ^1 O7 v; R$ J! a4 n
- PLA
: v% Q. }# `2 r$ @6 ? q* \ - TAY
5 ~7 w4 ^) K! X1 V) ?1 Z5 J6 l - PLA2 V8 H; v7 ?7 C7 t* \
- TAX' _/ C. |9 `* J0 |( g
- PLA3 l% p5 n2 ~' c0 a3 N* }
- RTS
复制代码- " \$ z8 b* b8 }" k/ d
- .ORG $BE005 W6 f, r& f. \% [" O5 ~& z
- / V9 y) E8 w2 C0 s6 S- C# Q
- CPX #$01
1 t1 }$ f+ k" d# Q7 ~ - BEQ P1_ATTACK# F& A3 h! W% F
- JSR P2_ATTACK6 Z# {3 N7 i6 K/ V
- P1_ATTACK:. s8 D- C4 I N1 f% t. b5 ~! q4 Y
- P1_DATA_PROTECT:0 ]4 ^7 E: s7 B% o: `3 W: I( T2 A
- LDX #$001 \3 d- \7 A/ s" r& r v9 i& [
- LDA $054C
~! i7 }/ b! ] - STA $07D7& n3 _, N" v- h$ C
- LDA $0532
- `% U) r. p4 B9 x. s - STA $07D8
; x1 k% Y. {% f& I4 m% w) h, G& n, U! W) y - LDA $0518
5 v8 ^9 \" B; y- O' A - CMP #$16
. V% z4 [* d% }! P& _* W - BNE P1_V_W* Y6 W8 C+ F9 W6 \+ f) F
- LDA $07D8# [: f& y. z! k
- CLC
' ]8 m; n, @+ G& Y - ADC #$08
3 `! y1 s7 ?* P& a3 n$ i: A - STA $07D84 Y/ o2 a% s: D, u
- P1_V_W:
* c9 }- ]& s2 ~' S- S, p2 u - LDA $0592,X
5 p$ I/ m9 s7 T. ~3 L a! _ - SEC3 ^& X& q; F: c
- SBC $07D7
; f& x- f& L- y0 n* u. M - STA $07D00 E4 W& v. @/ X! X' R, Z/ ?7 ]
- LDA $07D0
, e6 l3 w' l: m& F5 m3 } - BPL P1_H_W; M2 l/ T7 W* V; U
- LDA $07D7
( k3 {1 d& j9 f+ @, W - SEC
. A# Q6 F+ O* o1 B9 J - SBC $0592,X2 ]( {0 h/ b' w+ O. U
- STA $07D0: A4 v: m, s- T3 w* q7 ?+ c1 P
& s, @: i2 A% `9 |) W- P1_H_W:- [4 v8 p7 P8 s+ C, [- f; }
- LDA $0582,X
% C/ c3 P! s# J/ w - SEC
" Q1 N' N9 |% F% V6 n7 \ - SBC $07D8; E% u+ Q6 k/ y8 W' E+ Y) B
- STA $07D1, m" a/ U+ Z# M/ h& {! D. `
- LDA $07D1
% D) y9 X( Y3 R) T0 | - BPL P1_V_CMP
6 a5 p/ j3 L8 ^ g0 v - LDA $07D8: W% y8 D0 f z9 ^1 _' Q/ o
- SEC" v) Q* A- V- A( M% {9 S' G
- SBC $0582,X; ^% E( O/ `% g1 r" z5 D$ a8 ^
- STA $07D1
7 g% Q7 v8 C) M/ b( k( ^ -
: M) q) Z1 j0 b% x - P1_V_CMP:/ ^$ t4 Z$ a2 V5 `
- LDA $0518
: r& N! ^! Z# r5 \1 { - CMP #$16: z) ]" K& W" v+ @
- BNE P1_STD_V" t w, O- G; c9 K/ b
- LDA $07D06 W6 m+ d3 B' s9 p. f2 u' @5 L* D' f
- CMP #$12
; |! m( F# k0 l1 \* v& X - BCC P1_H_CMP" S. R9 y7 n" A0 b' C, b
- JMP P1_ADDX
( s( A5 R2 S+ g7 } - P1_STD_V:4 h" t1 m ~9 }6 n
- LDA $07D0
' U# a X, y; F - CMP #$08
% I: F' ?6 k6 K' G - BCS P1_ADDX
7 U3 F$ y2 b3 n: }, ~6 @# y, f - P1_H_CMP:
l" O1 O4 V, d, Z* B) z. R" }# B7 c! H - LDA $0518
" ?% u$ R/ n* T$ J - CMP #$16* p' H# H: u6 P# H$ O$ ^5 o
- BNE P1_STD5 V! f1 ]; x0 e C# ~( I& v0 a
- LDA $07D1
0 O5 l+ ~- q. i4 W7 e - CMP #$08
6 N; V4 \0 U2 f, O5 B - BCC P1_DIE$ g, G* Q% G, @. c0 L3 ^
- JMP P1_ADDX# Y( @" o7 O- f( H% E7 f2 I
-
6 ~' ^6 ?4 q" u$ r - P1_STD:
0 C9 u0 l# L: `0 D3 I) G b4 D - LDA $07D1+ X \7 S: X% b& Y
- CMP #$106 v8 K5 J& y- W- C% j
- BCC P1_DIE/ }4 q1 d7 X3 q8 R- e; ^4 n* X
- , S0 k5 t* D" [$ h+ B$ q
- P1_ADDX:
7 Y" {- @ ]* W$ V. X2 F - INX6 w. N: u2 c8 m: G+ [% [# J
- CPX #$060 ~9 W1 R/ x0 u1 e- D$ t
- BCC P1_V_W2 Q7 `4 g7 R. `& \' G
- RTS, H+ R) o- @# ^+ I( g6 i# o; F
-
, ^( U5 r9 ]# G6 o. r! c) [ - 3 ]1 q1 E2 `: y3 |2 \
; R$ `$ } V# F, y5 V% \- P1_DIE:
, W( Y- G, L# X2 [7 h, Z - PHA
5 M0 l% g2 Z( v& b7 ~ - TXA, c! G. S* [# Z
- PHA
4 ^( l, M/ q: L) s - LDA $05B2,X
d, B# p9 @. d( w) Z9 B - CMP #$01
) u- T2 r( n# v% ^5 G6 J- u/ U* { - BNE P1_NO_DIE
- Z/ j0 |: @% n4 L - LDX #$00
. T: }; u& a$ `% M9 \. H& d - STX $07ED/ w/ i3 U" d+ w8 K+ @
- LDA $D4 e4 O7 \' w0 m3 u* F9 H; q
- BNE P1_NO_DIE2 w+ ^. X8 c, ?% d' w6 r2 B( |$ o
- LDA $C4
* l5 g, b' D" O% N, T* U - BNE P1_NO_DIE
3 X, ?1 {$ b9 O/ _2 V l" } - LDA $A0
4 U1 h; V# I8 G( Y3 b) {6 E$ x - CMP #$02
, R" r# y" y3 V - BNE P1_NO_DIE
$ q2 x) q. f C. B+ }0 @; B1 s/ \( Q+ I - JSR P1_DIE_ACT
' n0 j1 U8 G% J8 c - P1_NO_DIE:
# ~* ^3 I# r1 ? - PLA
N* h6 y) |% O2 z - TAX0 \' i1 |3 u5 ]" r
- PLA
* V: Q# m) t4 w# W' U - JMP P1_ADDX) w6 w7 G* ^- s: g5 q. B! K
- 1 O5 c. S2 H& y
- P1_DIE_ACT:
2 B, i4 G' e3 h3 y9 c1 t - JSR $F6704 {+ Q1 Y R$ W( b- G9 [8 m
- P1_R:; a+ ~2 h% c- l) R0 [* F
- P1_RE:$ d( Z. j( M$ y" C& p
- RTS
8 U1 [6 J n% W, X1 T0 c - p) x, l2 b; l
H7 q7 ?5 p$ i' d% O-
7 h5 ?% s1 `9 z( h9 v3 s4 ~ - .ORG $BF00
* @ O, O* p1 |/ L: M) Y
0 e4 {' R, v* b# ?- R5 A. v( s% C- P2_ATTACK:/ t. o* j6 E [( i
- P2_DATA_PROTECT:* X. V: F4 Z$ G% E4 l
- LDX #$003 z9 k; @% [; b- c N" X
- LDA $054D
% `: t! Q; R0 A& c0 H- c8 K6 u - STA $07D9/ w' J: p$ M; j& c9 i
- LDA $05332 @: ^) i1 l- F" j4 ?7 T
- STA $07DA& `5 z) B/ P; h( @7 }* ~+ T
- LDA $0519
( j* m, d8 ?! Y5 M# G/ I- J. ~ - CMP #$16. `" D, s2 }: X! ]$ V: ^$ {
- BNE P2_V_W4 n8 `* L8 P5 o% q. X( e
- LDA $07DA
* V) s2 v- ~' O6 m6 W/ v - CLC# ~' ?4 {: k, j4 ~- {1 K* }8 v
- ADC #$08
% f+ _2 ?0 Z* r$ [. Y' g5 I0 N - STA $07DA- ]3 \+ h$ H x& K5 V H1 Z$ d, O
- P2_V_W:( j3 L) ~8 m s( x) A0 L& F
- LDA $0588,X- f V8 v5 q8 X; G& Z8 h
- SEC W7 \: [ x7 l
- SBC $07D9
8 E+ P: k4 h* N& u" o+ D6 S: k - STA $07D2
$ L' ?# x9 t& x) r - LDA $07D2' z' @4 F6 ~% g1 N4 Q4 [0 n
- BPL P2_H_W$ }8 ^ }. b/ w1 C- C9 U
- LDA $07D9
5 \) t% N# M/ A5 U - SEC+ s, C3 Q2 ]+ ?5 A
- SBC $0588,X: V% B5 v2 W& J% y0 r" n7 t
- STA $07D2
/ G6 s- v+ n% g# a- ] - 7 \' Q5 I L1 W+ V
- P2_H_W:
! _+ h/ I( f+ B0 g5 D1 J0 Z$ R - LDA $0578,X
2 {+ E B) Q9 m - SEC
6 O( ^0 b7 m' F, t+ b% Z% d: F6 D - SBC $07DA% L m" M9 ^& ^ c$ ?% D
- STA $07D3* M( O( q4 j, v7 e4 D3 f( d
- LDA $07D3
6 J$ l, G% F8 l8 g2 f - BPL P2_V_CMP
0 A6 ^& z$ R' ]" A - LDA $07DA% q0 s1 |/ _+ V! {+ [' a! f
- SEC
. u# f) C, F& A: X+ T$ t - SBC $0578,X/ r) b8 ~+ J) e, r' }& x
- STA $07D3
6 ]. Z) G j2 l0 I% T. p2 H2 P - 2 s; i8 _2 @' L7 ^. t* K7 V
- P2_V_CMP:# [' B6 o( g2 H
- LDA $0519
% m6 J* v; v! s" x: X/ Q' Z - CMP #$163 Z. x* ]4 l( P( [& i
- BNE P2_STD_V8 e6 E, B. n4 w, c* H
- LDA $07D2; Q+ W/ D" l& k$ r
- CMP #$122 f( K; e o1 a/ j
- BCC P2_H_CMP! X2 X& k7 x6 g6 n1 `
- JMP P2_ADDX, O6 d6 |! h( z$ `: p/ p+ P# ^9 j
- P2_STD_V:
+ I* }9 E# s+ Z/ g - LDA $07D2
3 g" C7 E1 Z! g5 D% u B - CMP #$08) a9 Z" o- V2 r& Q
- BCS P2_ADDX
B4 r, i( c0 r; Y M7 N' Q - P2_H_CMP:1 n* L5 z: p9 X+ ~
- LDA $05194 z6 U/ v8 O. R! `( x
- CMP #$16
- A- J8 g9 p3 C, V# l) N) F# r - BNE P2_STD
8 u6 b! i7 h% ]5 }2 F+ T" L% s. N - LDA $07D3; c0 F8 `- y. a+ J/ L6 |) d5 V
- CMP #$08 N$ S+ N! y' p& ]
- BCC P2_DIE2 {& F* ]1 ^& q8 D2 B( C: z, K( s
- JMP P2_ADDX
6 ?: ?- c' ~' t# ~+ a: T W/ T - 4 O' J) u `$ e" E: F9 ~6 ?5 c$ ?
- P2_STD:
n- ^! J1 \; K: D' t' T - LDA $07D3; V$ p# D- o4 M2 Z; D2 O% ]* R
- CMP #$10
5 ~+ S$ [' Y- T6 g0 j/ M2 r9 N - BCC P2_DIE! R8 j- Z6 B% |' ^6 P" s9 Z
- 2 K9 C' P2 e; R! w, {
- P2_ADDX:& ?+ _: K2 K5 Y+ _5 |
- INX8 g( A6 q0 c$ ?- C. u8 ^# ~
- CPX #$06
( u7 X2 x- Z" y0 l/ s6 {1 U7 e - BCC P2_V_W1 D7 D0 {) r5 N( A- }0 @: y0 L
- RTS. ?. _/ I& t2 Q/ P
- # c z! X) J1 E( `1 x, }$ U l
7 p s3 s9 ^1 S& V: Y1 q- 2 P: @8 I" l" ^" Z6 [
- P2_DIE:0 X/ @4 ~; o) b2 `# y
- PHA+ d$ Q, w. p3 B% E! f% f% c
- TXA
6 [$ T- g0 z5 V2 K0 F - PHA
& h0 X+ X- i5 T# F& ^' Z# z: b - LDA $05A8,X
! ]6 L/ U) f: q - CMP #$017 z2 m! x3 A6 c# Y, V* T+ @- a
- BNE P2_NO_DIE0 J0 x! _1 c6 z7 n
- LDX #$01/ |8 c: c* h6 F
- STX $07ED
0 W- Q! u- e3 m5 f5 b7 E - LDA $D5
I7 C8 I4 {+ {, P - BNE P2_NO_DIE
' i6 D( ?$ I2 R& B/ a% L - LDA $C5
, k' _/ a e, d/ J) p) R - BNE P2_NO_DIE
# N/ y& V- B5 x' f! L - LDA $A1; d% e, ?& D/ r* ^1 @2 X
- CMP #$02
) k1 L0 O/ Y* m - BNE P2_NO_DIE- s0 L% C+ k' P5 {9 |, d+ C9 b
- JSR P2_DIE_ACT# k6 d$ z0 M( p
- P2_NO_DIE:( ?- W7 {7 D. i7 N& `# b
- PLA+ g8 Q. y* H! _ g8 J2 N f! l. x
- TAX
9 x$ @4 ]6 g" P, }$ d - PLA% R9 H7 D6 o/ r5 m
- JMP P2_ADDX
6 p: `, r. w! j. Y -
$ T% y# \8 k4 v5 R- f$ U - 9 a v O8 X" O( J. `+ m7 Y w: V
- P2_DIE_ACT:! \7 r# G* ]2 s" E
- JSR $F670
6 s# j" d9 X7 U5 A z/ l+ z - P2_R:7 ^* K1 J. n# V% ~
- P2_RE:
7 ], N6 D( V& `/ h& `7 W6 Q - RTS
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|