4cade/src/prelaunch/pest.patrol.a

27 lines
561 B
Plaintext

;license:MIT
;(c) 2019 by 4am
!cpu 6502
!to "build/PRELAUNCH.INDEXED/PEST.PATROL",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $0837
jsr $0800 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$00
sta $5791 ; patch - don't decrease lives
sta $5352 ; patch - don't increase lives
+
+DISABLE_ACCEL
jmp $4003
!if * > $1C0 {
!error "code is too large, ends at ", *
}