|
本帖最后由 yandagui 于 2016-12-16 20:10 编辑
* Z: x/ C7 K$ O
+ X! B( h& @) h. t; r[FC][超级魂斗罗][互相伤害版][旋风修改][方案1] & `0 m- ]+ Q# n( ~& ?
$ h: B- |- V0 Y" E S; F& o- C时间:2016.12.16" g& @( ^9 n9 K% l
作者:FlameCyclone, o# x- K B8 M0 M
内容:
2 G' i0 ?( B9 D# i$ }# o- R& D$ C \# `. W4 ?( s5 U. K
互相伤害: P1与P2可以互相伤害了,玩了这么多年超级魂斗罗,看队友不爽就开枪打死他吧(笑抽).3 |! |' z# E: O# ]" M
0 F4 Q. f4 m" M0 l8 ]备注:
" L+ Z/ H, V& N7 V+ \' G" BS弹有4发子弹P1与P2共用,因此共享部分鄙人将其设置为无害,否则自己被自己打死可不好玩了.- E7 t! @* l9 U4 H8 Y6 Y# l$ b
* p6 j1 w! m5 g$ v3 z7 ]) J: v2 }5 @
3 n0 F2 t- K2 {# C) ?# [) |
+ r# z6 \! Y0 m: E: [6 T7 M欢迎转载,但必须注明出处0 D, [/ U/ m( E+ S$ H, i$ { A+ E
FlameCyclone.ys168.com% x$ S) |7 e3 d* e6 t5 ]2 s
- .ORG $FF20
% y9 L$ d# I% e( j- H+ N
# I3 d7 V5 s$ i; Q" P1 Y- STA $F5,X
+ Y6 R. L! ^* |2 X( k. f) a& T - STY $F3,X9 U4 u! x B/ y# V8 z0 [" s' g
- PHA& B+ G; z3 P' @# d
- TXA1 o; n1 I3 u& _5 B2 ]5 Y
- PHA
6 Q7 _3 p1 ~- l+ R7 Q' [- I - TYA' u R, v+ s1 T8 [7 X. a' g
- PHA
* \$ g3 w s) r$ D9 m$ c4 l% N! | - LDY #$03
8 P2 T0 j2 [% t' ` - JSR $FD7B
/ y7 h8 @6 y+ n6 C) h6 C$ U" d - JSR $BE00
0 ?- [' G7 N* X0 j - PLA+ g+ _& C8 d) y/ @$ T& T5 J* C
- TAY
- r$ a6 u$ d, X, }" l: |5 P% U - PLA
. f% f3 }+ i; V* H/ P - TAX8 Q s0 e) |/ J( a
- PLA& y( }5 t- D* A9 `
- RTS
复制代码
. W* @- ]3 L# J* N1 Q N/ V7 i- .ORG $BE00
' {$ U. e8 Z) Y" p g, u0 d - 0 J* y3 L- [/ z2 C+ o
- CPX #$01% y$ K/ z9 x8 C5 B& s
- BEQ P1_ATTACK2 G+ ~3 C1 _% | G8 o% ^: H
- JSR P2_ATTACK4 t9 J* I, }9 K
- P1_ATTACK:
" H6 M" Y* h- b& q - P1_DATA_PROTECT:4 ~# d# J, k* F0 U, ?" C
- LDX #$00
_( b0 s- z7 E8 ~/ V; y9 p' N - LDA $054C
- A$ n* k5 ?0 o. ]4 q - STA $07D7
) c2 D0 J5 P6 P8 H! M* }' ~6 N& i - LDA $0532
C5 S3 k1 l' F - STA $07D8& j9 S: r) b0 o
- LDA $05182 S; m. Z" h" T9 u1 R: p
- CMP #$16- N6 i6 n; x& u* C
- BNE P1_V_W3 C9 d5 a( Z6 m" s# @7 y
- LDA $07D8. \+ U% o3 @3 B P- R. j+ [: X9 N
- CLC
! A2 ~4 Z. y) t( P8 G9 W - ADC #$08
) H. p8 {7 x( d% N - STA $07D8
' x/ d0 J0 j$ ` - P1_V_W:
, o$ P. D: R( r* z6 l' x - LDA $0592,X5 \( g, @7 o1 y$ P" a: o# Y
- SEC
+ [/ |3 R" Y# p; R l - SBC $07D7
$ \6 z9 q' D5 ^! J1 @, [ - STA $07D0
% X2 Z2 v( `* l" G, M - LDA $07D02 W. f' f8 ?/ d R
- BPL P1_H_W b* a, Y1 N; i* t) R
- LDA $07D7
* m1 C: l9 u( g4 B/ \ g$ Y - SEC
+ G* c& m+ `4 {+ H @+ J6 L+ y - SBC $0592,X9 y2 @3 {3 @; F( S6 ~ k0 g$ | B
- STA $07D0
- A7 _, i! [& S4 J4 R7 y - 4 u2 `4 e% w+ _ C2 c1 `; x
- P1_H_W:
' @6 Q5 Q( ]# }0 h - LDA $0582,X4 q7 r+ t0 s, G. ]% B- s
- SEC/ O) t- H) g6 H9 X
- SBC $07D8
$ Z! h0 ~' l. ^0 | - STA $07D1
, @, ?) H4 s n: [+ U0 p, G o - LDA $07D1
$ r% O2 C( H6 G* L9 @ - BPL P1_V_CMP
! r$ k0 n0 q6 o( P8 T+ z - LDA $07D8
: f( L$ C) ^- N4 f - SEC0 I p% E# ]2 ?
- SBC $0582,X8 E6 }' t9 Q4 c9 n$ [
- STA $07D1
) |3 N) k3 O- `" k4 r0 [ - ) j8 e) r5 y) O0 B2 x, q
- P1_V_CMP:' j" @/ j' N6 t0 l
- LDA $05187 ?, w' \4 U- @# [0 f4 A
- CMP #$16' ]6 F6 | k$ a. h- V8 Z3 }: v5 B
- BNE P1_STD_V
, Q$ p% j. i3 f; o( T7 F6 `% w - LDA $07D0
. D0 l: ^, G$ ^1 {+ ^ - CMP #$12
( K- X/ X) V* x4 c! Y - BCC P1_H_CMP1 m! l5 z2 d* t5 Y
- JMP P1_ADDX7 Y5 [+ g- l0 j( N* F' j0 m7 m7 O
- P1_STD_V:
. u% N9 s% p ?6 u+ C4 e - LDA $07D0
) S9 G: D0 [- Y7 d5 M - CMP #$08
7 }5 J& [ l6 g! D - BCS P1_ADDX, ~ s4 t/ v* x
- P1_H_CMP:
% ?+ `* T, l( I+ i9 T5 E - LDA $0518$ T S+ V4 ^4 h& O3 F
- CMP #$16
) T' s/ S' p# a( Z h- g$ h- u( j - BNE P1_STD
& c0 v* P# ^' b7 b - LDA $07D1
% Y. ?7 x! v! [5 G: x; { - CMP #$08+ C+ F* @% b: C" I* F9 s0 M. s* Y
- BCC P1_DIE# y; ?; V! w4 Q% G. r
- JMP P1_ADDX! e0 b7 a& d' @3 _5 ~$ X
- 8 m0 F) ~( z* g
- P1_STD:
) J6 h- ~( v5 K7 w2 N3 _/ K3 A - LDA $07D1
8 x. Y7 C- T" ?4 ^ - CMP #$10
. n' W8 x' _% u* Q2 g" H1 X - BCC P1_DIE; b8 x: I8 r2 O
8 k& K& [- I' L& ~! |1 C- P1_ADDX:8 K( ^& V: V9 ~* {' P8 ~2 j
- INX! h1 Y9 n2 `- W* @" q- u2 F
- CPX #$06+ J) k) k* U) b. J8 d- m& [
- BCC P1_V_W
0 E/ x. h0 b, r: b8 p5 } - RTS4 S3 e p! D& S: o" Y
- : R, V U* I& P6 H& |" O4 y
- $ A6 b& {: S" p
- - n5 R8 e8 m3 s! s" B$ r& {' g
- P1_DIE:
' G) G) h6 G$ T. t - PHA
. D: z1 \9 f9 J& R4 ?) B5 p( B - TXA4 s% M! n% ?) C# g. h
- PHA
1 B8 m H! S( H& Z/ o- H6 a - LDA $05B2,X
% ^6 L7 ]# }3 }7 D( X4 ` - CMP #$016 Y2 E. e- _. R& @! m
- BNE P1_NO_DIE
6 a. E- w" b: `( o. j - LDX #$00
# }9 w5 ^9 j7 d5 ]# i4 E' o. j4 H - STX $07ED
! i1 n- L2 c( B: h% _ - LDA $D40 o2 q; T# K* d
- BNE P1_NO_DIE- j8 W, U' {: d" c8 F* y% t. w
- LDA $C4+ R+ G1 t' W5 V3 w1 Q' k
- BNE P1_NO_DIE
7 @) g, M2 P* X0 T# C7 g- D+ m - LDA $A0
. E/ M4 l$ H: |, O# `7 E9 D - CMP #$02
% d! d. |1 C: j, N2 `; {5 B - BNE P1_NO_DIE+ c5 o1 P5 J9 Q3 A$ P7 R3 q( o6 J+ l3 x
- JSR P1_DIE_ACT/ T" X1 O1 [1 N9 ` b8 i. z" j
- P1_NO_DIE:
# ~* R9 _# E# g7 |' y - PLA
' w4 a, {" d, q+ G) R8 T& J - TAX
# S# p5 w5 w1 ?! \: a% M7 | - PLA9 U/ [* D; C+ L# Z6 i9 ~
- JMP P1_ADDX8 |1 S0 Y+ e9 k3 ^! d, A2 R
- ) @0 ?" ]# d9 H& ]5 M3 S
- P1_DIE_ACT: V s! ~5 m2 r, v- s4 O1 s
- JSR $F6706 j7 c5 |( V9 [" a' A4 o# V ^$ N
- P1_R:% H& }3 \# H" E: `
- P1_RE:7 F4 R3 K' n% w
- RTS6 h9 {5 c1 R# j3 W d9 B
- % t1 j' ^8 v* O& F% n
- ! Y3 @* [" @/ k
- , W, E& t9 i( D& \$ ^. |
- .ORG $BF00
. s' Q. w) L# Z1 l( y. n) ? Z
, T) x8 }$ G1 U- P2_ATTACK:
* U! ~/ Y6 E b9 N - P2_DATA_PROTECT:( Z; Z/ V- c) O/ a5 Z$ |1 x ?
- LDX #$00
! C& l, d) [) M - LDA $054D6 b( A) v, [! r
- STA $07D9/ V# [/ {- G9 E# N# `: ~% S& L
- LDA $05339 }# P& E+ W3 Q2 o
- STA $07DA4 O5 M6 Y/ X1 @# V
- LDA $0519
3 P7 o$ n& T0 p& A" | - CMP #$16. A5 T8 |' i8 E5 r1 H
- BNE P2_V_W1 q; c! s/ l& {) E- s
- LDA $07DA) `7 ?) ]2 m; I U
- CLC2 p' `8 I1 Y' R: [, k- K4 y
- ADC #$081 q+ r" y- [7 }' F/ I! `8 e
- STA $07DA
+ \7 C* W8 Z, ?' Z. A4 X$ E* f( h7 ]$ | - P2_V_W:: w$ i" n3 d7 W
- LDA $0588,X
; _& ^9 C- i7 c8 |5 D - SEC" G+ ~: C+ N/ f4 s
- SBC $07D9
; @9 {9 Q& p- a7 B0 a - STA $07D28 [5 }" O# q: Q0 v/ u2 k
- LDA $07D2
/ a2 e2 B( a% Q- I* V - BPL P2_H_W5 X7 N' e A" g3 Z
- LDA $07D9
# x+ v0 j0 O( }8 j! z. R/ B - SEC3 g8 g! ?; z( H6 _
- SBC $0588,X5 _* u, m2 D- s( Q) h6 }
- STA $07D2
1 m$ h( n2 r4 ?# J2 M - , A5 R/ ~ l# f9 d: J* b
- P2_H_W:+ n* L2 ~8 |. @
- LDA $0578,X
$ N! Z1 e! W4 M% X3 T S0 ^ - SEC
! U8 T* Y: b% s: C6 C) ] - SBC $07DA1 T! c2 B F/ b! C( s! ~
- STA $07D3+ i1 q0 }2 i# N6 }0 a+ W
- LDA $07D3
$ M1 R# h# s! s* K5 Q( ` - BPL P2_V_CMP
9 z! i$ s6 t% q0 k# A - LDA $07DA6 [4 N* ~; K5 R. C" c+ f* r
- SEC
& i9 x# @ j. F7 b" p - SBC $0578,X
; K, |) y% D4 u# F b - STA $07D3 e. U7 d1 \" X' S3 d+ M) u. @
-
8 \6 i. O& V6 M- }! v, s0 t - P2_V_CMP:5 `+ D1 P T9 m0 ]
- LDA $0519
5 c# x: s1 u4 a - CMP #$16/ R& E4 Q$ C' B: c
- BNE P2_STD_V
. z) ?( q3 M6 Z2 p' C, q. k - LDA $07D2
# F- t' V- I2 ~) o3 L8 e/ f - CMP #$12 c. B# `: T, o, n4 ^
- BCC P2_H_CMP
% @2 ]3 q7 N! D" @1 J* Y$ e$ i - JMP P2_ADDX
' @! s4 M* M0 Q - P2_STD_V:' d% I0 Y2 m. j( h
- LDA $07D2
+ B3 ^3 M8 N* w) U) ? - CMP #$08
$ d; _2 v1 a8 H* x! m - BCS P2_ADDX/ n: b7 V% [3 G) l- ?8 j
- P2_H_CMP:
( `# [& O* ?3 ?. A0 B0 Z2 C - LDA $0519- `/ m: g2 R, u* w" V$ g9 l
- CMP #$16/ y6 C, D \0 z" ]3 Q9 _
- BNE P2_STD9 T9 u( [, \8 x
- LDA $07D3
% E* |4 r) x* c+ q7 u9 E: a - CMP #$087 o& X& [- O- Q* @
- BCC P2_DIE9 B8 ? R$ d. b- S9 r
- JMP P2_ADDX, }: W# x+ P, n; u. V1 V
- , v6 p0 D' {0 \1 d
- P2_STD:
~) j8 h: k+ \) Y+ | - LDA $07D3
, C# j+ u4 F1 L1 }5 j - CMP #$10
0 `" a* Y6 X# o" B' [# w/ @ - BCC P2_DIE* L4 b+ ?: _& R, R. Y
- 0 K) c8 W/ w% `' p" V# c& @3 ]
- P2_ADDX:" o+ W' ]9 R& Q& J' s; |" u- Y
- INX* C) Y! x! b- F8 Z$ {# K
- CPX #$06$ G& b p, R- X$ C4 B7 F
- BCC P2_V_W
3 d6 N1 j5 s! Q9 L# d* [6 S; M - RTS/ t( u1 `2 n& S" t9 T" u0 p
-
; k0 a \2 Y% R) |* y - ' ?+ t1 K& B+ [, x* W7 V( g
- }6 k% C8 j" k4 c
- P2_DIE:
3 t W0 u$ K/ S- Q" _$ I - PHA
6 W+ ]% M. R) q1 K% O: W* g8 ]/ { - TXA" Y3 d7 T0 z9 r
- PHA! O7 F0 K$ r/ i3 N( d$ y
- LDA $05A8,X6 v$ j/ k' K$ L3 H
- CMP #$01/ _9 I: ]7 J$ @( |! T
- BNE P2_NO_DIE3 l+ k. V# [, j: J6 \' b0 C
- LDX #$01
! a. E+ Y6 ^. G3 ? - STX $07ED. c0 R2 C3 [3 _7 s! L! {! f5 p6 i) B
- LDA $D5
, X. s5 e) j# ~ \/ J - BNE P2_NO_DIE
( i* C9 W( H v4 ^4 i1 l: E+ W; ~ - LDA $C5
3 {- J. @7 k$ `# Y% o - BNE P2_NO_DIE
, G5 R5 o8 t0 b" n9 R - LDA $A1
) ]2 y; d6 x8 b/ T X7 l - CMP #$026 v" u4 M0 k+ W6 a" A7 b2 K' \, t
- BNE P2_NO_DIE; y" _, n1 T @* B8 l& A% P
- JSR P2_DIE_ACT
4 |6 c4 |/ z/ i$ W) Q- I# Q% w* t - P2_NO_DIE:
. p) P8 l; g7 H6 w, _5 ] i - PLA' m+ E, u8 {4 L H% T, ] Y
- TAX
; A% r4 F$ c# f4 r - PLA
' R' i+ g2 c4 b1 W: ]$ P2 H - JMP P2_ADDX' a. d/ o. e1 b5 ~ [+ G( }
- # X3 w0 C7 n4 C7 Y3 ?9 K" a
- . v6 Y1 `% @" Z/ w: u' E4 X
- P2_DIE_ACT:
% }/ H; M. }( m( i - JSR $F6700 S( G4 e: Q/ u2 _& v3 l' \
- P2_R:5 m+ s2 v8 m w" @
- P2_RE:
1 A A9 \7 R" e! ~6 ^% y - RTS
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|