4cade/src/demo/sneakers.a

40 lines
828 B
Plaintext
Raw Normal View History

2021-10-03 01:47:56 +00:00
;license:MIT
;(c) 2021 by qkumba
!cpu 6502
!to "res/DEMO/SNEAKERS",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
2021-10-03 01:47:56 +00:00
+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 ", *
}