mirror of
https://github.com/a2-4am/4cade.git
synced 2024-06-30 07:29:34 +00:00
33 lines
667 B
Plaintext
33 lines
667 B
Plaintext
;license:MIT
|
|
;(c) 2020 by qkumba/Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH/MICROWAVE",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #<callback
|
|
sta $40A3
|
|
lda #>callback
|
|
sta $40A4
|
|
jmp $4000 ; decompress
|
|
|
|
callback
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$ad
|
|
sta $8EB ; patch - don't increase lives
|
|
sta $C41 ; patch - don't decrease lives
|
|
+
|
|
+RESET_VECTOR $100
|
|
+DISABLE_ACCEL
|
|
lda #0
|
|
jmp $8974
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|