mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-14 19:33:00 +00:00
42 lines
794 B
Plaintext
Executable File
42 lines
794 B
Plaintext
Executable File
;license:MIT
|
|
;(c) 2019, 2022 by Frank M., qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/PM",plain
|
|
*=$106
|
|
|
|
!source "src/macros.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #$60 ; hook1
|
|
sta $3EA9
|
|
jsr $3E88 ; decompress
|
|
+DISABLE_ACCEL
|
|
|
|
lda #$60 ; hook2
|
|
sta $A050
|
|
jsr $A000 ; title/load
|
|
|
|
lda #$60 ; hook3
|
|
sta $948
|
|
jsr $940
|
|
|
|
+RESET_AND_IRQ_VECTOR $100
|
|
|
|
ldx #0
|
|
stx $10AD
|
|
inx
|
|
stx $10B2
|
|
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$ad
|
|
dec $107B ; patch - don't decrease lives
|
|
+
|
|
jmp $950
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|