|
本帖最后由 yandagui 于 2016-12-16 20:10 编辑 3 b1 e+ Q7 |, ^6 a1 t
( l) F5 a$ P+ F- ?: F
[FC][超级魂斗罗][互相伤害版][旋风修改][方案1] ( P. y0 q# {, [! I p4 ?
7 _5 R1 e6 n8 {# f) P9 w; C
时间:2016.12.16
/ q" h; E5 {3 p8 d8 X4 Y作者:FlameCyclone
* G% A3 {( R$ X3 o内容:
9 o8 a5 }( V5 Y1 C7 p6 O7 ^; `! i u- L+ E) Z: q- P" x1 n
互相伤害: P1与P2可以互相伤害了,玩了这么多年超级魂斗罗,看队友不爽就开枪打死他吧(笑抽).
+ M! S: B* o: s+ {2 C; U+ Q3 e6 e, c8 `4 C
备注:/ @# ?9 {* E/ ?
S弹有4发子弹P1与P2共用,因此共享部分鄙人将其设置为无害,否则自己被自己打死可不好玩了.
+ I! Y3 E, | j3 I1 L1 v! y# Q; u$ ?3 S# g9 h
" u5 X1 W7 x3 E- N. s i) @& F0 j6 V
欢迎转载,但必须注明出处
+ A" l- x$ M( |. w) f* ?FlameCyclone.ys168.com
3 N4 \3 R, S) Q8 @* Z2 ~) `( e- .ORG $FF20
$ P6 O3 c1 A# o4 ?. L2 _8 ` - + h$ X( |; j. |. w* i" Z
- STA $F5,X8 X0 m$ f0 Z* Z" r# m3 t
- STY $F3,X! ]" ~& k+ T& O, x9 y
- PHA9 o+ P9 `8 d# g. |
- TXA
. m) @) T/ B$ O, r3 F3 e - PHA; H; ?! l4 z* o# t+ n
- TYA" A) v8 r9 u0 ~8 J
- PHA5 f6 _5 Y' y1 b
- LDY #$03' F# A/ l1 e" l& Z; ]; q
- JSR $FD7B* b2 Y3 G% e' b6 `
- JSR $BE00
7 y/ n+ q. P# v7 }% X" n, d - PLA
6 C8 m+ K0 u9 U1 l2 V$ [ - TAY' M5 k8 b1 F7 |' o7 e
- PLA
' p; K; y4 }1 X7 z - TAX
! J4 t& [6 O+ O- i - PLA
& ?1 Z8 W6 {9 [8 e - RTS
复制代码- 5 C. ?' p8 y }' |. X
- .ORG $BE008 v. o. D; ]: u/ |" B# R7 }- T
-
8 ^3 w; q9 |% H! y - CPX #$01
, \! R7 k- @( ?5 P+ b% x/ p - BEQ P1_ATTACK1 c4 f' A! M. Z0 B( a1 a
- JSR P2_ATTACK; M. `2 s0 H$ A% G( Y. ~1 J% x
- P1_ATTACK:
- v, H( r& I$ X+ j$ O - P1_DATA_PROTECT:
/ c# L4 m0 ~; f6 G$ c% A, X: T) o - LDX #$00
# _$ A" G, Y& r4 ]( n - LDA $054C* n- |3 @7 R* {+ d2 I7 O
- STA $07D7
8 e: x! F5 D4 G4 l - LDA $0532
x0 _: W5 Y: ]5 L3 m' B6 c - STA $07D8
. R, p" {0 H" F: p9 a - LDA $0518
& a$ p6 n5 H0 s- X6 b% S - CMP #$16! v( f% r! ]8 F" e% i- f
- BNE P1_V_W: l- k+ P, G6 X4 t% m3 D) \
- LDA $07D8: ^: D I+ k% U+ Y
- CLC
) Z! k e. x* ` - ADC #$08; b" a; r; X/ h1 L7 ^! M
- STA $07D8
5 Y- H3 n. g, M' p - P1_V_W:
- K. u# t$ F9 r+ U* K7 A2 K" V - LDA $0592,X
2 s7 L$ d! p6 h/ P - SEC# o: M( M; n9 v0 v6 K. k# r" G
- SBC $07D7
( l( |5 C2 F9 E9 f - STA $07D04 F: `8 J1 K: I6 s' \
- LDA $07D0
* ?( A% M$ u3 ?1 q: F - BPL P1_H_W" E) m |. H d# E5 X- g. o
- LDA $07D73 p0 ^. l j1 Q. S) x
- SEC: O e% v1 y. m) t( g! }+ l, F) i8 l
- SBC $0592,X
' l. H( k) _- K/ K! K( E - STA $07D0! l; T# M2 ~: |- {2 l
) F- \& }5 T' \8 J/ g- P1_H_W:' N& B7 d- B$ I: S
- LDA $0582,X" r7 ]: [" T; M l/ l
- SEC: o2 \+ M: G4 ]/ l) P
- SBC $07D8
9 p5 g$ G) V V - STA $07D1
1 c$ q3 e; X4 v: p2 {$ j - LDA $07D11 h- { m1 k0 s4 u9 B
- BPL P1_V_CMP
- s0 E8 H! r6 A - LDA $07D8. ]* R a9 A9 |% m! L. q) i
- SEC1 w) S4 _* H% ?4 G1 Y* d
- SBC $0582,X' `, [# n2 ^, s7 E
- STA $07D1- C( O, p' G: R: ]8 I/ l: m
- 3 \, Y% t! b6 J; `, u( b C
- P1_V_CMP:
" }6 ~ e+ _( ^' O+ z - LDA $0518
% l) G8 B& x8 A, g8 ^ - CMP #$165 I, K9 P5 m q u5 h
- BNE P1_STD_V& }2 I) X) r3 }; F
- LDA $07D05 f& a! l% G0 f! |, Q. _0 F. J
- CMP #$12
6 a( w; \2 I' K+ Y( M - BCC P1_H_CMP
: W9 l+ V) H" t! y1 r - JMP P1_ADDX3 {; b" }$ e$ z; C
- P1_STD_V:% Z; Q) u' O; `% L7 O% E
- LDA $07D09 \ v4 G, G, b8 V+ h
- CMP #$08
# u1 Y* ]! ~5 K, m/ I$ |. ^ - BCS P1_ADDX
5 z9 P( P, i A' d, W" | - P1_H_CMP:
! v4 R5 D& w, Z3 N - LDA $05188 h) G1 v0 p8 }' X
- CMP #$16
; y8 U5 D) J+ i% V3 r } - BNE P1_STD( _& ]$ N0 S0 Y/ o
- LDA $07D1
) Z U5 t& o0 Y% K. u# s2 g, [3 u- } - CMP #$08
( d' d" _$ ^7 O- T! X - BCC P1_DIE
. ]8 [# k$ j6 W! {9 { - JMP P1_ADDX4 i# b% T" \1 O$ e
-
- Q( f, Q0 E$ s - P1_STD:
( s' ~* o, S0 @ - LDA $07D1
2 t. I: s- ~) P* G H1 s1 [$ C - CMP #$10" O p# ^- I# L4 s; v
- BCC P1_DIE
2 U8 B+ ~: ~ e" x+ P3 T8 W. S% N0 r3 o
2 @8 L& h5 E9 L- P1_ADDX:* S) w. A. a2 y4 K
- INX
* f1 l" B' h; l" o - CPX #$06
, y$ x- i% z7 l( o- S! P - BCC P1_V_W8 i& ]: b' @, Z& N3 ]. a
- RTS9 E, i5 Z" ?: }
-
& O" ]) ], C* |* M
( o+ V1 w/ H0 I; B/ v9 j# J- 8 N1 O8 _9 q- \9 S4 d. f" ^
- P1_DIE:) | o d( c- ]
- PHA* D/ j6 p1 Q) X
- TXA
9 F4 X. ?( B/ L - PHA
9 e' ?; a% ~( j" U - LDA $05B2,X
. w- X! C, N2 ]2 l9 I# w/ G - CMP #$01
! G: Y0 X4 d) ^6 O - BNE P1_NO_DIE1 O$ O; g6 e5 {
- LDX #$00
4 f1 g$ r' ^' D$ M1 d8 V - STX $07ED
- S6 O9 u: b; I) y2 g* Q f - LDA $D4
% l2 F7 m) H S( V1 e2 A; g% B7 Q7 | - BNE P1_NO_DIE t& l' |, Y8 C \5 g1 f8 }
- LDA $C45 k+ n8 J; Y5 i9 ~
- BNE P1_NO_DIE4 \: D: V+ d* B! w O; u- y/ g4 d( j! L
- LDA $A0! N3 Z4 l: u- q
- CMP #$02! n& B" e/ C5 B& ~+ X+ p
- BNE P1_NO_DIE
0 i% }% S$ d' o - JSR P1_DIE_ACT p" c" N4 a" r4 t
- P1_NO_DIE:# b3 I; e* y) G0 i# I
- PLA, U8 t4 q, p+ O! ^ k/ u5 z0 X
- TAX6 a4 x& p3 b7 |3 d( t
- PLA# ~5 P, Q# w+ |; J, Q- ?2 Z: h
- JMP P1_ADDX& F1 c' Z9 m( l1 n& \8 a
-
& m/ x8 y n( v - P1_DIE_ACT:" i4 n* z* S2 \, @9 v
- JSR $F670
& Q& V- O5 y- {1 N- R - P1_R:
8 L! R, z D: y8 M! H" D - P1_RE:/ G0 l$ F' Q o$ _& O
- RTS. [0 D- T8 L# f' d- ]1 M
-
' ~! y: Q6 I! g6 A( Q" { - ( ?; \; n2 n7 j F$ ` s
-
5 |6 ^- E% p- ^2 p" K* J2 N% O - .ORG $BF00
) ~5 R2 d/ A; E. { L1 Z - 9 e( _& W4 L7 b$ g
- P2_ATTACK:; m4 H5 F) [& T8 a6 p
- P2_DATA_PROTECT:2 K5 Q4 z! r N; h
- LDX #$00
- i1 Z: j) G8 ]& V - LDA $054D
' I+ N e- w9 U; P - STA $07D9
7 \, r: H7 U1 g% ^ - LDA $0533* s0 ^6 K. L$ s' [ L) t
- STA $07DA
- M) a$ a& n7 ^, ]4 U% d0 k; P - LDA $0519
, r; V; z' Z$ v6 E - CMP #$16
# q+ @" b+ x. b% N6 m: [ X' N - BNE P2_V_W
' c, w k- b, x1 } - LDA $07DA
' I: k9 O2 R, B - CLC
: y3 t& e# O8 H# u9 v$ v - ADC #$08
4 s+ i) \5 x# ]) y - STA $07DA+ \7 z: B/ s4 Y0 |5 J- H
- P2_V_W:
. T; H9 m, n: f6 X, q - LDA $0588,X
( X) t$ K: n6 @- m( y w2 S2 p - SEC D( |/ W! p$ }
- SBC $07D98 R# M- X( s4 l, L8 |
- STA $07D2
( X. U( y2 @% h/ `7 X - LDA $07D2 s, }8 V9 g' J1 S9 U/ |2 l
- BPL P2_H_W
8 F5 B2 b9 w9 v, Q; ] - LDA $07D9
+ {1 X: b; D$ S! Q u# N- M \ - SEC9 {) Y: J2 o7 y3 h0 d
- SBC $0588,X' ~$ c, c H5 I M+ C
- STA $07D2
8 m9 o7 v& ` V" |$ ?+ @
9 @0 d8 a' c8 T5 U8 ~" C- P2_H_W:! c( I: k+ A9 \ R5 f! ^
- LDA $0578,X
! U% j/ e5 A4 c4 Q - SEC
8 D$ D4 S. e/ S& x4 i, E& A - SBC $07DA& G, x5 g3 X5 O- a% a
- STA $07D31 P5 Z* h0 m" M7 g! c
- LDA $07D3" R9 e$ i% H% ?9 o
- BPL P2_V_CMP
, A4 a, I# a+ `% |4 t" x - LDA $07DA
9 q' x' H( E# |3 L - SEC
: s4 f9 r2 d- X# e - SBC $0578,X! ^$ \0 S' L3 Q- z- O
- STA $07D3
. i& ? C, h; V" n. `( O2 g( X$ n* C! c - 7 i6 p' @% J! o, \% b
- P2_V_CMP:
1 ?# ^# o0 i8 k5 q& c4 Y - LDA $05192 [- K b3 Z# g$ y+ u
- CMP #$16) X6 t* |# J! m+ X0 f
- BNE P2_STD_V2 Y, h- b7 Z9 L! [0 W
- LDA $07D2+ U8 t: ^) K$ r8 m& H' Y
- CMP #$12
# @* }0 m' B$ b) L - BCC P2_H_CMP
5 G: o8 t: F1 M* c1 V- ] - JMP P2_ADDX0 l+ ~, V. {; [$ ~# e
- P2_STD_V:* M3 G [# {: X+ [$ Z; z+ y
- LDA $07D2# x) g8 r3 M9 Z! p' A% e6 {$ r
- CMP #$081 L2 h, Y/ J. P2 M! T
- BCS P2_ADDX+ S, z1 h1 r% R. Q0 Q
- P2_H_CMP:# ]" U7 |7 f/ Y
- LDA $0519
: R- ~+ o: P0 p" c. V; y4 { - CMP #$16
5 J& Z7 G7 P* E! t) i+ w# u - BNE P2_STD
^# l( N5 W4 k - LDA $07D3
+ E& h3 h- V3 R* o ^( f - CMP #$08: S K2 v/ h+ t; @% y, o9 X
- BCC P2_DIE
7 f" S5 ]# v: w) p1 A - JMP P2_ADDX' ?+ H+ _2 t9 O5 }% s
-
, ?5 g& i; |. |+ `! e" L; d - P2_STD:
+ O4 d/ c. C R( j I6 P - LDA $07D3/ {; V/ l) w' p+ N& I
- CMP #$10
6 |+ G5 D8 h# J$ Q0 Q/ J' ? - BCC P2_DIE6 K3 J! H8 { K, a e% a6 @
- - c! T( j% L) `& ]
- P2_ADDX:
9 R7 o" t1 A. o# f% M, ]) o - INX
+ o+ X# o8 R0 x* R - CPX #$06+ d# K( m/ e {6 r0 d
- BCC P2_V_W
2 _+ o! z) X+ n+ { - RTS
5 N% A; q$ N ] - ! x2 }6 q' O% X: n/ B
- - F# G- Y7 `& I/ _+ v) g
- 3 v. O3 r: V; g$ v
- P2_DIE:
1 S3 e9 C( j8 x8 u - PHA
: |% x$ r* `$ Y; @3 ] - TXA; b+ @5 ?! K- n. w7 H5 x
- PHA9 p7 _ D" Q( S# W+ Q( l' z
- LDA $05A8,X/ M/ E( [. Z- y
- CMP #$01$ r* p$ A( [: o. {+ m
- BNE P2_NO_DIE
* G5 F; b$ J# [0 | v - LDX #$012 a) z4 K; G8 q
- STX $07ED
% i0 y) G& m# @, Y - LDA $D5
/ k6 d; Y- L; J) E# o7 c - BNE P2_NO_DIE
! T" U9 P, H8 b% q - LDA $C55 o: O$ K5 x8 {' U
- BNE P2_NO_DIE" `7 e3 _( ]' r. N0 ` |
- LDA $A1* L6 O& G* m7 y
- CMP #$02
$ |$ u. K1 v8 P/ @2 l3 _$ q& h B - BNE P2_NO_DIE
# \! R0 N2 q d+ i1 b. q, @$ [& t - JSR P2_DIE_ACT
' Y8 U4 e" n5 g7 S) b) H; s$ @ - P2_NO_DIE:
6 k+ J% M9 |* x y - PLA3 v3 |# G% I J; `4 `5 e# } s
- TAX
2 c- h$ h9 k; S6 Z' R - PLA
! q- @% k2 W/ |* t- t7 E* a8 H/ U! u - JMP P2_ADDX6 B0 i" r4 m$ J
- ; }9 K9 k# C6 b
-
) l6 _( p0 a! ]# l - P2_DIE_ACT:
) Q) c$ d8 Y5 S2 }- ]! Z - JSR $F670
" F, K8 M+ ?$ ^' l2 ~( F - P2_R:
5 B1 ]. r9 F4 C- R& k - P2_RE: J* B# E& B o' S* L8 i
- RTS
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|