mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-19 02:10:39 +00:00
44 lines
855 B
Plaintext
44 lines
855 B
Plaintext
;license:MIT
|
|
;(c) 2020 by qkumba/Frank M.
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH/ARDY.AARDVARK",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
+NEW_RESET_VECTOR $280
|
|
lda #<callback1
|
|
sta $2842
|
|
lda #>callback1
|
|
sta $2843
|
|
jmp $27BF ; decompress
|
|
|
|
callback1
|
|
lda $C000
|
|
bpl callback1
|
|
ldy #(callback2_e - callback2) - 1
|
|
- lda callback2, y
|
|
sta $200, y
|
|
dey
|
|
bpl -
|
|
iny
|
|
sty $9610
|
|
inc $9611
|
|
+DISABLE_ACCEL
|
|
jmp $401E
|
|
|
|
callback2
|
|
+GET_MACHINE_STATUS
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
dec $6820 ; patch - don't decrease lives
|
|
+
|
|
jmp $401E
|
|
callback2_e
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|