4cade/src/prelaunch/gadgetz.a

29 lines
629 B
Plaintext
Raw Normal View History

;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/GADGETZ",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $201A
jsr $2000 ; decompress title
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$AD
sta $922 ; patch - don't decrease lives
sta $116A ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $822
!if * > $1C0 {
!error "code is too large, ends at ", *
}