mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-30 18:30:39 +00:00
WOF prelaunch
This commit is contained in:
parent
273a6b851f
commit
56d7a286b3
37
src/prelaunch/wings.of.fury.a
Normal file
37
src/prelaunch/wings.of.fury.a
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
;license:MIT
|
||||||
|
;(c) 2020 by qkumba
|
||||||
|
|
||||||
|
!cpu 6502
|
||||||
|
!to "build/PRELAUNCH/WINGS.OF.FURY",plain
|
||||||
|
*=$106
|
||||||
|
|
||||||
|
!source "src/prelaunch/common.a"
|
||||||
|
|
||||||
|
+ENABLE_ACCEL
|
||||||
|
lda #<callback
|
||||||
|
sta $2129
|
||||||
|
lda #>callback
|
||||||
|
sta $212A
|
||||||
|
+GET_MACHINE_STATUS
|
||||||
|
and #CHEATS_ENABLED
|
||||||
|
beq +
|
||||||
|
lda #<cheat
|
||||||
|
sta $8276
|
||||||
|
lda #>cheat
|
||||||
|
sta $8277
|
||||||
|
+
|
||||||
|
jmp $800 ; decompress
|
||||||
|
|
||||||
|
cheat
|
||||||
|
jsr $2000
|
||||||
|
lda #$AD
|
||||||
|
sta $AAAC ; patch - don't decrease lives
|
||||||
|
rts
|
||||||
|
|
||||||
|
callback
|
||||||
|
jsr DisableAccelerator
|
||||||
|
jmp $2000
|
||||||
|
|
||||||
|
!if * > $1C0 {
|
||||||
|
!error "code is too large, ends at ", *
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user