4cade/src/demo/cannonball.bltz.a

47 lines
917 B
Plaintext
Raw Normal View History

;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/CB",plain
*=$210
!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 $1e61
jsr $1e30 ; decompress/sets reset vector
+RESET_VECTOR $100
lda #$2C
sta $A0D2
sta $A0D5
sta $A0DA ; reset fix
ldx #9-1
- lda patch, x
sta $A090, x
dex
bpl - ; exit after keypress and set up counter
lda #$C6
sta $A006 ; disable sound
+DISABLE_ACCEL
jmp $a000
patch !byte $CE,$98,$A0,$10,$93,$4C,$00,$01,$02
title !byte x_e-x_b
x_b !text "X/CB/CB"
x_e
!if * > $300 {
!error "code is too large, ends at ", *
}