4cade/src/prelaunch/hard.hat.mack.a

37 lines
761 B
Plaintext
Raw Normal View History

2019-09-17 01:45:12 +00:00
;license:MIT
2019-12-25 22:15:36 +00:00
;(c) 2019 by 4am/Frank M.
2019-09-17 01:45:12 +00:00
!cpu 6502
!to "build/PRELAUNCH/HARD.HAT.MACK",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
2019-09-17 01:45:12 +00:00
lda #<patcher
sta $9431
lda #>patcher
sta $942E
jsr $4856 ; decompress
patcher rts
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
2019-09-17 01:45:12 +00:00
lda #$AD
sta $50A5 ; patch - don't decrease lives
sta $7197 ; patch - don't increase lives
+
2019-12-17 14:46:30 +00:00
lda #1
sta $2218 ; reset vector patch
+DISABLE_ACCEL
2019-09-17 01:45:12 +00:00
lda #$07
pha
lda #$FF
pha
rts
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}