mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-29 22:49:26 +00:00
39 lines
777 B
Plaintext
39 lines
777 B
Plaintext
;license:MIT
|
|
;(c) 2021 by qkumba
|
|
|
|
!cpu 6502
|
|
!to "res/DEMO/SNEAKERS",plain
|
|
*=$300
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
jsr EnableAccelerator
|
|
+LOAD_FILE_AT sneakers, $00
|
|
lda #$60
|
|
sta $84c7
|
|
jsr $3ffa ; decompress
|
|
ldx #0
|
|
stx $54AB
|
|
inx
|
|
stx $54AC
|
|
stx $9E2F ; reset vector patch
|
|
ldx #8
|
|
- lda patch, x
|
|
sta $4068, x
|
|
dex
|
|
bpl -
|
|
jsr DisableAccelerator
|
|
+READ_ROM_NO_WRITE
|
|
jmp $9e00
|
|
|
|
sneakers
|
|
!byte 19
|
|
!text "X/SNEAKERS/SNEAKERS"
|
|
|
|
patch !byte $10,$03,$4C,$00,$01,$EA,$EA,$A9,$00
|
|
|
|
!if * > $3F0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|