4cade/src/demo/cyclod.a

49 lines
927 B
Plaintext
Raw Normal View History

;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/CYCLOD",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00
lda #$60
sta $202A
jsr $2000 ; decompress
ldx #6-1
- lda patch, x
sta $7381, x
sta $8B20, x
dex
bpl - ; exit on keypress
lda #$4C
sta $89EF
lda #0
sta $89EF+1
lda #1
sta $89EF+2 ; exit at end of demo cycle
lda #$D0
sta $7CED ; disable sound
+DISABLE_ACCEL
jmp $8EA6
title !byte x_e-x_b
x_b !text "X/CYCLOD/CYCLOD"
x_e
patch !byte $10,$03,$4C,$00,$01,$EA
!if * > $3F0 {
!error "code is too large, ends at ", *
}