mirror of https://github.com/a2-4am/4cade.git
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
;license:MIT
|
|
;(c) 2021-2022 by Frank M., qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/DEMO/SHORT.CIRCUIT#060210",plain
|
|
*=$210
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
!source "src/macros.a"
|
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
jsr EnableAccelerator
|
|
+LOAD_FILE_KEEP_DIR short_circuit, short_circuit_dir_e-short_circuit_dir_b
|
|
lda #$60
|
|
sta $207C
|
|
jsr $2000 ; decompress
|
|
|
|
ldx #3-1
|
|
- lda patch,x
|
|
sta $A248,x ; set exit on keypress
|
|
sta $A7B4,x ; set exit at end of demo cycle
|
|
dex
|
|
bpl -
|
|
|
|
lda #$D0
|
|
sta $A654
|
|
sta $A665
|
|
sta $9494
|
|
sta $ABD9
|
|
sta $1F36
|
|
sta $1F3E
|
|
sta $9998 ; disable sound
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
jmp $A100
|
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
short_circuit
|
|
!byte short_circuit_e-short_circuit_b
|
|
short_circuit_b
|
|
short_circuit_dir_b
|
|
!text "X/SHORT.CIRCUIT"
|
|
short_circuit_dir_e
|
|
!text "/SHORT.CIRCUIT"
|
|
short_circuit_e
|
|
|
|
!if * > $300 {
|
|
!error "code is too large, ends at ", *
|
|
}
|