mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-28 15:31:51 +00:00
40 lines
753 B
Plaintext
40 lines
753 B
Plaintext
;license:MIT
|
|
;(c) 2020 by qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/SUPER.BUNNY",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #$60
|
|
sta $A32
|
|
jsr $800 ; load DOS
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #<callback
|
|
sta $BD26
|
|
lda #>callback
|
|
sta $BD27
|
|
+
|
|
+DISABLE_ACCEL
|
|
jmp $B700
|
|
|
|
callback
|
|
jsr $BE07
|
|
lda $B7EC
|
|
cmp #$14
|
|
bne +
|
|
lda $B7ED
|
|
cmp #$06
|
|
bne +
|
|
lda #$AD
|
|
sta $BB01 ; patch - don't decrease lives
|
|
+ rts
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|