2021-10-24 04:44:11 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2021 by Frank M.
|
|
|
|
|
|
|
|
!cpu 6502
|
|
|
|
!to "res/DEMO/AQUATRON",plain
|
2021-10-31 01:20:30 +00:00
|
|
|
*=$BD00
|
2021-10-24 04:44:11 +00:00
|
|
|
|
|
|
|
!source "src/constants.a" ; no code in these
|
|
|
|
!source "src/macros.a"
|
|
|
|
|
|
|
|
+READ_RAM2_WRITE_RAM2
|
|
|
|
jsr EnableAccelerator
|
2021-10-27 00:11:02 +00:00
|
|
|
+LOAD_FILE_AT title, $00
|
2021-10-24 04:44:11 +00:00
|
|
|
+READ_ROM_NO_WRITE
|
|
|
|
|
|
|
|
lda #>(callback - 1)
|
|
|
|
sta $5FC3
|
|
|
|
lda #<(callback - 1)
|
|
|
|
sta $5FC6
|
|
|
|
jmp $59C2 ; decompress
|
|
|
|
|
|
|
|
callback
|
|
|
|
lda #$4C
|
|
|
|
sta $7AE1
|
|
|
|
sta $7D1D
|
|
|
|
lda #0
|
|
|
|
sta $7AE1+1
|
|
|
|
sta $7D1D+1
|
|
|
|
lda #1
|
|
|
|
sta $7AE1+2
|
2021-10-26 14:23:19 +00:00
|
|
|
sta $7D1D+2 ; set exits
|
|
|
|
|
2021-10-24 04:44:11 +00:00
|
|
|
lda #$D0
|
|
|
|
sta $7E11
|
|
|
|
sta $7E38
|
|
|
|
sta $7E43
|
2021-10-26 14:23:19 +00:00
|
|
|
sta $7EA0 ; disable sound
|
2021-10-24 04:44:11 +00:00
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
+DISABLE_ACCEL
|
|
|
|
|
2021-10-24 04:44:11 +00:00
|
|
|
jmp $400
|
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
title !byte x_e-x_b
|
|
|
|
x_b !text "X/AQUATRON/AQUATRON"
|
|
|
|
x_e
|
2021-10-24 04:44:11 +00:00
|
|
|
|
2021-10-31 01:20:30 +00:00
|
|
|
!if * > $BEFF {
|
2021-10-24 04:44:11 +00:00
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|