2021-10-31 16:39:38 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/ROBOTRON.2084#069000",plain
|
2022-09-11 03:39:10 +00:00
|
|
|
*=$9000
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
+ENABLE_ACCEL_LC
|
2022-09-11 03:39:10 +00:00
|
|
|
+LOAD_XSINGLE title
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
lda #<callback
|
|
|
|
sta $141D+1
|
|
|
|
lda #>callback
|
|
|
|
sta $141D+2
|
|
|
|
jmp $1400 ; decompress
|
|
|
|
|
2021-11-05 00:23:28 +00:00
|
|
|
callback ldx #6-1
|
2022-09-27 17:20:04 +00:00
|
|
|
- lda $100, x
|
2021-10-31 16:39:38 +00:00
|
|
|
sta $4542, x
|
|
|
|
dex
|
|
|
|
bpl - ; exit on keypress
|
|
|
|
|
2021-10-31 20:58:09 +00:00
|
|
|
ldx #3-1
|
2022-09-27 17:20:04 +00:00
|
|
|
- lda patch, x
|
2021-10-31 20:58:09 +00:00
|
|
|
sta $453A, x
|
|
|
|
dex
|
|
|
|
bpl - ; exit at end of demo cycle
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
lda #$D0
|
|
|
|
sta $053B ; disable sound
|
|
|
|
|
2022-09-11 03:39:10 +00:00
|
|
|
+DISABLE_ACCEL
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
jmp $4015
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $4C,$42,$45
|
2021-10-31 16:39:38 +00:00
|
|
|
|
|
|
|
title !byte x_e-x_b
|
2022-09-11 03:39:10 +00:00
|
|
|
x_b !text "ROBOTRON.2084"
|
2021-10-31 16:39:38 +00:00
|
|
|
x_e
|
|
|
|
|
2021-11-05 00:23:28 +00:00
|
|
|
!if * > $C000 {
|
2021-10-31 16:39:38 +00:00
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|