mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-21 00:31:52 +00:00
68 lines
1.2 KiB
Plaintext
68 lines
1.2 KiB
Plaintext
;license:MIT
|
|
;(c) 2021-22 by qkumba, Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/WARGLE",plain
|
|
*=$106
|
|
|
|
!source "src/macros.a"
|
|
|
|
jmp main
|
|
|
|
callback2
|
|
jsr $BD58
|
|
jsr $BD09
|
|
lda $B7EC
|
|
cmp #7
|
|
bne +
|
|
ldy #$A5
|
|
lda $B7ED
|
|
cmp #7
|
|
beq ++
|
|
cmp #9
|
|
bne +
|
|
sty $96D6 ; don't increase lives
|
|
beq +
|
|
++ sty $962E ; don't decrease lives
|
|
+ pla
|
|
pla
|
|
clc
|
|
rts
|
|
|
|
main
|
|
+ENABLE_ACCEL
|
|
lda #$60
|
|
sta $9EA
|
|
jsr $800 ; load "DOS"
|
|
lda #<callback1
|
|
sta $B748
|
|
lda #>callback1
|
|
sta $B749
|
|
jmp $B700
|
|
|
|
callback1
|
|
ldx #$00
|
|
stx $9E52
|
|
ldx #$03
|
|
stx $9E53 ; reset vector
|
|
ldx #5
|
|
- lda $100,x
|
|
sta $300,x
|
|
dex
|
|
bpl -
|
|
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #<callback2
|
|
sta $BD07
|
|
lda #>callback2
|
|
sta $BD08
|
|
+
|
|
+DISABLE_ACCEL
|
|
jmp $9D84
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|