4cade/src/demo/championship.lode.runner.a

66 lines
1.2 KiB
Plaintext
Raw Normal View History

;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/CL",plain
*=$200
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
;+LOAD_FILE_KEEP_DIR
ldx #0 ; read to main memory
stx ldrhi
stx ldrlo
+LDADDR title
jsr iLoadFileDirect
ldx #5-1 ; we also need to copy the length byte
- lda newpath,x
sta $BFD0,x
dex
bpl -
lda #$60
sta $1F74
jsr $1F00 ; decompress
lda #$10
sta $8AD3
lda #$08
sta $8AD3+1
lda #$4C
sta $8AD3+2
sta $7524
sta $61FF
sta $626D
lda #0
sta $8AD3+3
sta $7524+1
sta $61FF+1
sta $626D+1
lda #1
sta $8AD3+4
sta $7524+2
sta $61FF+2
sta $626D+2 ; set exits
+DISABLE_ACCEL
jmp $6000
newpath
!byte 4
!text "X/CL"
title !byte x_e-x_b
x_b !text "X/CL/CL"
x_e
!if * > $300 {
!error "code is too large, ends at ", *
}