mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-19 18:32:58 +00:00
35 lines
633 B
Plaintext
35 lines
633 B
Plaintext
|
;license:MIT
|
||
|
;(c) 2020 by qkumba
|
||
|
|
||
|
!cpu 6502
|
||
|
!to "build/PRELAUNCH/BATTLE.CHESS",plain
|
||
|
*=$106
|
||
|
|
||
|
!source "src/prelaunch/common.a"
|
||
|
|
||
|
+ENABLE_ACCEL
|
||
|
lda #$50
|
||
|
sta $933
|
||
|
lda #2
|
||
|
sta $934
|
||
|
ldy #(callback_e - callback) - 1
|
||
|
- lda callback, y
|
||
|
sta $250, y
|
||
|
dey
|
||
|
bpl -
|
||
|
jmp $800 ; decompress
|
||
|
|
||
|
callback !pseudopc $250 {
|
||
|
sta $C008
|
||
|
bit $C083
|
||
|
jsr DisableAccelerator
|
||
|
bit $C08B
|
||
|
sta $C009
|
||
|
jmp $C00
|
||
|
}
|
||
|
callback_e
|
||
|
|
||
|
!if * > $1C0 {
|
||
|
!error "code is too large, ends at ", *
|
||
|
}
|