mirror of
https://github.com/a2-4am/4cade.git
synced 2024-10-11 02:23:42 +00:00
068b2fa7e3
* Add files via upload * Delete CANNONBALL.BL.1 * Delete DINO.EGGS.1 * Delete ROBOTRON.1 * Delete VINDICATOR.1 * Add files via upload
47 lines
917 B
Plaintext
47 lines
917 B
Plaintext
;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 ", *
|
|
}
|