4cade/src/prelaunch/battle.chess.a
frankmilliron 147cc25b79
fix a bunch of 128k game reset vectors (#252)
* rename 'last.ninja.a' to 'the.last.ninja.a'

* fix a bunch of 128k game reset vectors

8 more that are more complicated to come.
2020-06-08 08:28:43 -04:00

36 lines
683 B
Plaintext

;license:MIT
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/BATTLE.CHESS",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
inc $3F4 ; force reboot
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 ", *
}