|
本帖最后由 yandagui 于 2016-12-16 20:10 编辑 & D$ m& K" C2 G; m
7 L5 r3 t. w7 \* k! h[FC][超级魂斗罗][互相伤害版][旋风修改][方案1]
$ F2 R7 F* n4 w$ w8 e/ j4 E1 D( f3 n
时间:2016.12.16/ a- K+ [6 K# i/ h
作者:FlameCyclone
, L( j! @0 a% p5 k' l内容:8 P$ M e; G- |/ ^; s- {9 a \/ p! I7 D# B
+ Z4 A; ]8 K, h
互相伤害: P1与P2可以互相伤害了,玩了这么多年超级魂斗罗,看队友不爽就开枪打死他吧(笑抽).
+ e3 x. H8 F7 W8 v1 ~
* R) X. H: P0 P- Q) E% P* H5 q备注:
: o6 A4 L7 D6 j" x; HS弹有4发子弹P1与P2共用,因此共享部分鄙人将其设置为无害,否则自己被自己打死可不好玩了.2 U8 t9 I" o+ J
! ~+ Z. V, W. L5 [% ^
6 ^( j9 @4 x7 z# s( i/ L- j
* H5 T8 B) ?1 h, s欢迎转载,但必须注明出处8 W! c: I& C. `
FlameCyclone.ys168.com
. f# a0 h) ^) t- G0 i) F- .ORG $FF20, A, x1 V, i& j" I& A' i/ L
- " Q d5 u( z! F# ^2 D# Q3 ?3 e
- STA $F5,X) E+ a: L P5 x. j
- STY $F3,X
0 a4 B8 s0 ]0 `5 e - PHA
% j; S. z3 b* l5 b u/ y0 f4 C - TXA3 l/ j" I2 H# L! M/ ^( w
- PHA0 V$ i7 ~, F1 V0 `' z* s6 e% F% h/ _ S
- TYA
* e9 ~" ] I6 U+ A - PHA
- y) b ]$ k# n - LDY #$03
' h# C4 Y3 N- O0 ^ R$ c - JSR $FD7B
2 T. H5 u" H& ]2 z - JSR $BE00
8 I+ k. H% [9 v9 m+ Z3 d$ J - PLA% `4 B, @4 J$ y/ f
- TAY$ h( I* g- B8 a8 X, N' H9 [, }0 W
- PLA! E/ g" {3 M D P2 P. V
- TAX% F- _; |' I4 ]! X" n7 u5 Z" C& n
- PLA
5 r8 d5 O1 z0 F& P7 O3 B" B - RTS
复制代码- # B7 {' C3 }; T! V) a$ D
- .ORG $BE00
3 W8 o" A8 {* y7 \/ S2 `3 U -
9 _9 Q3 S0 E& a- o - CPX #$01
9 E7 m H& z7 Y - BEQ P1_ATTACK
3 R8 E7 ~5 F( c. H9 r3 ^! p - JSR P2_ATTACK- u0 _ z7 H" g9 A7 Q
- P1_ATTACK:
4 M# K5 n4 [/ l" r8 Z - P1_DATA_PROTECT:+ z3 O9 V( k& H$ }9 T+ Y! a _- n7 y
- LDX #$00& k$ H- v! M' l2 U4 n* p
- LDA $054C
+ |: G8 N0 d0 u e - STA $07D76 w! l: k4 B4 u! o
- LDA $0532
0 |, k$ }7 S5 Z6 z0 q& F- [ - STA $07D8+ k# A6 [( e" Y7 a! O. h
- LDA $05181 B; r; g$ n+ G0 S, w4 G8 R
- CMP #$160 d% }; }' r3 {
- BNE P1_V_W# R# F: [( S" @+ _0 h
- LDA $07D8
/ I* B# `! o2 {& K4 N - CLC$ b5 @1 s P+ F+ D4 w
- ADC #$08
8 e4 w( G/ T5 {+ g: y4 F - STA $07D8
( h1 \3 u2 E, s/ R - P1_V_W:: o0 x7 l3 D2 p9 _7 }7 ~: a
- LDA $0592,X/ P$ j4 p5 S8 ~4 U
- SEC9 j- g6 T9 J. r
- SBC $07D7
( u' E A& s* U: C# B0 [' i/ Y: j - STA $07D06 l- C7 I7 T% ?8 h6 ~6 K% L$ R
- LDA $07D01 l J) C5 q/ I# d' Z# W
- BPL P1_H_W
) e. A4 R! d; H - LDA $07D72 n+ V* q% f9 v2 f
- SEC
' `( f; ] r$ m9 a, I3 z8 o - SBC $0592,X
, q4 L) G* h" \, T - STA $07D0
~. ?2 b/ B& |2 F+ [: l1 t
4 {' s0 Z* D. P) @* G- K# K: B- P1_H_W:3 u' {5 D8 o* H8 ]" N
- LDA $0582,X3 n3 J/ S+ b& E$ |
- SEC( a( v2 q+ w2 p9 I2 r ~5 [
- SBC $07D85 V+ j+ W, B9 N1 }
- STA $07D10 P7 J2 |* Z% F( D9 _
- LDA $07D1
+ l \; T6 i/ } - BPL P1_V_CMP
% w2 }; l# E5 q( e; t" l - LDA $07D8
( S8 [* J: |5 \% v* g9 Y - SEC
$ ~6 U+ q2 m+ L2 |+ y. | - SBC $0582,X, e) P5 [8 V+ H" S
- STA $07D1
4 ?1 d/ X$ l' h' |5 H$ G- j; n c - 6 _" X* Y( L$ S7 H7 o8 D) t
- P1_V_CMP:
& v" h" k. `3 q+ {! K" i/ M - LDA $05182 o3 y; e+ D6 S1 i% k& R0 l+ h
- CMP #$16
$ x! [ }+ ?, H3 T* O( Y' S6 u' k - BNE P1_STD_V
. B E, v7 I$ g" \# ~# T8 k - LDA $07D0: ~- p! j5 g, X+ I
- CMP #$125 }7 W6 p. m2 Z* y% @
- BCC P1_H_CMP
- t( E. m2 _6 G& w+ _ - JMP P1_ADDX( w. w/ j+ d' [6 V/ n/ k
- P1_STD_V:1 n- D* u9 A. N. a; z/ x- G" R
- LDA $07D00 {) X8 W. d0 q7 H$ l3 a$ h6 p
- CMP #$08( \3 h' f4 e" M/ L. w
- BCS P1_ADDX. O' p4 Q. q) C0 a# Q
- P1_H_CMP:$ K: L. t' e, ~* Q2 B( {
- LDA $0518
# s! j- U7 ?2 b1 q. F - CMP #$16
+ @0 e4 z. S+ x# T" ^ a+ Y. O! h+ [ - BNE P1_STD6 Z7 q! o/ W! @5 \8 C
- LDA $07D1
5 [% p3 v9 Y8 _. B+ v: E6 Y: D - CMP #$08; v4 o' z6 g; O7 g- N# d
- BCC P1_DIE
3 a3 W) V5 a' [/ g k - JMP P1_ADDX, p9 _5 g2 P) I
-
' {, Q8 P1 U/ I& J - P1_STD:) L9 T, n. T, L
- LDA $07D1- ^3 u8 @/ @4 F( B1 u
- CMP #$10) ]4 b$ \0 A+ Y" x* Z
- BCC P1_DIE0 ^% N) W3 V" ~" G+ s, _
! q( A- d( C4 {9 ~- P1_ADDX:
- r6 ~5 D4 m9 l4 l4 d/ f+ Y - INX; j5 Q) w' i) \& U) N/ U
- CPX #$067 v# U4 T3 t6 p' g/ v1 o% O
- BCC P1_V_W4 R% i" X B& M" G
- RTS$ C9 g* X1 G5 W
- & x- Q2 N5 o; C
- ; A: j' H0 O) B9 w$ D- O
- # B% Z; I& T3 o D6 @
- P1_DIE:- F* j; K8 H' `* a4 R
- PHA
7 }* m! p1 [- G" K% J' Z - TXA" L2 s7 Q2 q2 g3 E i
- PHA
3 Y& v( H+ P( P( v5 x8 t - LDA $05B2,X1 I! D I, p9 o$ U
- CMP #$01
: W u4 q% i9 `: C4 c - BNE P1_NO_DIE, u: } O: Q2 _) b2 y& U7 E8 F
- LDX #$00( [* n( |$ l' U! }; w+ @
- STX $07ED
5 k2 {" p- ?0 |1 x. U/ l* t; u1 Y - LDA $D4
( R6 u6 V% p; b - BNE P1_NO_DIE' @$ n+ N8 W5 L K
- LDA $C4( w0 c) n; \' h: b4 h- x
- BNE P1_NO_DIE
! _8 r- _6 c: R. [1 } - LDA $A0
+ u: F. }$ V( q - CMP #$02
5 I. w- N6 b/ l6 s$ U. X& _* U4 o# @ - BNE P1_NO_DIE6 s. N* y9 Q: S) |7 I
- JSR P1_DIE_ACT
" L$ }1 z) k1 f - P1_NO_DIE:
( I' Z8 n) k9 e! Q - PLA% {" |5 ]9 e# w
- TAX: C3 @0 Z$ }7 Z
- PLA9 f( _+ S; z. H* V. T0 m1 ^
- JMP P1_ADDX" x% g4 H6 M2 u# y2 r9 A9 ]% f
-
/ a. g6 A% f% Y6 H - P1_DIE_ACT:$ K0 S P5 ?9 Y: I! ]
- JSR $F670
. v" z7 B! j- U1 w% K' U3 z - P1_R: i* Y$ E! W. i# P
- P1_RE:
. @, E9 a% l+ z; }, ~5 u4 C - RTS+ ~+ a" L# I! V* O; X
-
1 Y! g3 p1 G9 F
) m: I. D. A8 z* G-
0 {) y( F* y: O2 a2 O4 [2 F/ N1 F - .ORG $BF00
: ]2 s$ i) V% J# T
: ^6 L! ^' u* J" O( l7 Y8 n+ f4 A! j- P2_ATTACK:
% b1 T( t: o( r: | - P2_DATA_PROTECT:
6 y; j/ @& b9 }# _+ l4 ]" a - LDX #$00
- F4 F5 e5 z. M1 {" {- J2 a: q - LDA $054D
8 z( { f3 |- c$ }( e9 A% k - STA $07D9- q( v3 i2 w- Q! q5 N
- LDA $0533
' h, L f: j, e2 A, B; Q( D - STA $07DA5 C- _- j( ~& j' n/ }, {; e
- LDA $0519$ j3 q$ b T/ i# x! e, S. n$ w
- CMP #$16
+ u% f3 R# G3 ~$ Z9 x8 [+ ?7 v - BNE P2_V_W
0 A. q" p. @' f; r - LDA $07DA7 O' t9 M7 c4 [' a
- CLC
h/ x" j9 S$ `% Q - ADC #$08- m- t7 A! C0 Y( a4 u' \
- STA $07DA
- }8 H! ~% E3 J$ P, _3 k- @' _ - P2_V_W:
& i$ ^0 [; w3 I- o - LDA $0588,X2 q8 ?" Y7 y7 a$ k
- SEC _8 d% ~) o7 ~( v0 Y2 k7 E
- SBC $07D9# Q2 u0 k9 @. {9 h, z. z9 k
- STA $07D2 R/ J# N' \/ d/ O- a, a5 { T
- LDA $07D2! X% |& C, z5 y4 ?0 W
- BPL P2_H_W
6 l; ~$ U# e" N5 @8 l1 Z( C+ t - LDA $07D9
! S% A& ?& B( ?. D - SEC+ X, c# Y3 R) W+ p h+ [& x4 y
- SBC $0588,X
* Z( R3 _# ^( V - STA $07D2
: \$ E" z( Z* |1 E6 @: A9 P6 s! F8 W! a
0 {1 ^% v, E3 v7 K: Y) C4 O: m- P2_H_W:# ^! f6 p1 ^$ U# k1 [
- LDA $0578,X% q# w+ m% e9 ]( T$ ~
- SEC
3 J$ d2 K0 R* }, n0 T8 p/ U1 D - SBC $07DA" \( [6 X! @) N% r+ A
- STA $07D3
% l C" b$ Q' G, ^! Z4 b! Q8 Y7 Z - LDA $07D3
( u8 V/ `, E$ ]/ u6 [) I9 e } - BPL P2_V_CMP. o9 n; \3 @9 L. I/ ] f& S9 M% V
- LDA $07DA7 s; A: c0 d# A
- SEC$ e6 v; u2 J$ Q' t& I
- SBC $0578,X" G* j/ i8 R8 ^6 f& z4 E
- STA $07D3
& m6 e+ }; j. Y p% n, ^ -
% J3 {3 [8 A+ |! R7 O1 E - P2_V_CMP:0 W) r- {5 o' U5 A
- LDA $0519
1 D- i5 D# L9 ?+ ^1 M - CMP #$16* D5 b4 U8 |1 M& E$ H
- BNE P2_STD_V" Q: u9 g8 ^2 a9 S/ B
- LDA $07D2* \% y3 u& v: d% m6 J& [0 l
- CMP #$12& L: p# d" y* }0 ^6 u- P6 O/ j% b) T
- BCC P2_H_CMP/ g5 T2 h3 }5 }* A4 q" u
- JMP P2_ADDX
6 ?9 w; P% n1 U( M - P2_STD_V:
: a( L/ K2 b2 B0 o - LDA $07D2- O% l& i8 W- \! d q9 O
- CMP #$08
2 O3 M7 J/ K$ h( J. `3 u' j+ t - BCS P2_ADDX9 `8 M3 m- u) r
- P2_H_CMP:
9 D# ]7 ?3 j( E6 b( U1 t ~ - LDA $0519$ v* J* M: M" [
- CMP #$16
$ h w' l6 P. n( O5 m. J" b5 z# ?) ~3 o - BNE P2_STD
% P& Y) v7 p9 I - LDA $07D3. B0 Q( \; M- `$ w* j- ~
- CMP #$083 c- X8 M, M, a& z% A q, q
- BCC P2_DIE4 @ k5 ^5 a8 ^6 u: G6 g
- JMP P2_ADDX6 G: C1 `* n/ x! i# Z$ ]
-
6 n6 e O7 d& K7 u1 i: Z - P2_STD:
: D. w: V% o) U' z7 U - LDA $07D3; b$ D8 p0 i/ i- G6 b) s" ^$ x$ }3 U
- CMP #$10; T# m/ G6 s0 Y" C, `) k/ m5 R
- BCC P2_DIE
& Q6 V+ X; E) {9 t' {
' _$ y3 L+ z( \* u1 T- P2_ADDX:; V+ z: q! u( C+ g W2 U
- INX8 }: e% U* O+ o% I- S8 c6 x
- CPX #$06$ b- E/ X/ m) M# _3 a# K
- BCC P2_V_W
) p q" D2 P" z7 a* s4 u+ z - RTS) }/ U- G' q H1 x5 `8 m( k2 P! W' s
- & w8 u7 J1 Z& |) M* B
- : B* f- P. e% l$ I6 S. M& U
- - [* ?: p" K# k6 `' q
- P2_DIE:
" \$ o: w# `% n) U( ?( e* v t0 y% E - PHA; ~( ]" o0 h4 [$ R( l. W
- TXA
2 B7 J* B! X- i$ I3 W - PHA$ i3 ~$ K+ w* c; W" p3 b
- LDA $05A8,X
4 J5 s6 e0 b' ^2 E - CMP #$016 `! J. ~+ v* Z# \
- BNE P2_NO_DIE
9 l; C+ g# Y) T" y - LDX #$017 w4 |2 x/ U9 U) P) O# h
- STX $07ED! o# G( ?9 E) e# m) x# I- I* z' S( b4 |
- LDA $D5. f' y! m3 V: M* e
- BNE P2_NO_DIE' x: G$ F0 b- {8 v" e! g8 H
- LDA $C59 p- o1 ~3 u# B) K
- BNE P2_NO_DIE9 {- |& J: b& ]# j6 { E2 R& B% i
- LDA $A1
+ g' s9 x, y7 l/ ? - CMP #$02
2 ?5 e f7 y. k7 X. N8 d9 V - BNE P2_NO_DIE/ i+ @! N9 y9 o6 @
- JSR P2_DIE_ACT! A* t! W% Q/ \9 Q1 {" ^2 O' {
- P2_NO_DIE:
; t7 R4 S! q$ ?7 f6 v: s' g2 @9 \ - PLA) P+ s# x: v7 Q f2 Q. k N
- TAX4 @- u# x- ~1 _
- PLA: s. B! X6 c Y* S) j$ c
- JMP P2_ADDX
% Z- _, C# ]* r+ |- J U% F$ w -
8 C5 y1 d2 V# A9 z- d8 Z, M - ' M; A9 z& h- H; m
- P2_DIE_ACT:
_0 I3 m9 ] N9 ]# n8 K) X - JSR $F6707 b. {. y0 x" x- C( U
- P2_R:
* ^% E+ A0 x+ w' y0 V - P2_RE:
3 H) t% K# o, `9 [( B7 | - RTS
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|