mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-15 04:30:18 +00:00
37 lines
758 B
Plaintext
Executable File
37 lines
758 B
Plaintext
Executable File
;license:MIT
|
|
;(c) 2019 by Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/SABOTAGE",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #$60 ; hook1
|
|
sta $4020
|
|
jsr $4000 ; decompress1
|
|
+DISABLE_ACCEL
|
|
jsr $6B00 ; decompress2/title
|
|
|
|
lda #$60 ; hook2
|
|
sta $1DB2
|
|
jsr $1D1F
|
|
|
|
; re-patch reset vector
|
|
+RESET_VECTOR $100
|
|
|
|
+READ_RAM2_NO_WRITE
|
|
lda MachineStatus
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$60
|
|
sta $5BE6 ; patch - don't decrease ammo
|
|
+
|
|
+READ_ROM_NO_WRITE
|
|
jmp $42BC
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|