mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-28 00:52:00 +00:00
37 lines
761 B
Plaintext
Executable File
37 lines
761 B
Plaintext
Executable File
;license:MIT
|
|
;(c) 2019 by 4am/Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH/HARD.HAT.MACK",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #<patcher
|
|
sta $9431
|
|
lda #>patcher
|
|
sta $942E
|
|
jsr $4856 ; decompress
|
|
patcher rts
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$AD
|
|
sta $50A5 ; patch - don't decrease lives
|
|
sta $7197 ; patch - don't increase lives
|
|
+
|
|
lda #1
|
|
sta $2218 ; reset vector patch
|
|
|
|
+DISABLE_ACCEL
|
|
lda #$07
|
|
pha
|
|
lda #$FF
|
|
pha
|
|
rts
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|