2018-03-05 04:09:32 +00:00
|
|
|
; Note: needs some extra work
|
|
|
|
; Set up initial pointer
|
|
|
|
; Skip/strip the LZ4 header
|
|
|
|
|
|
|
|
.include "zp.inc"
|
|
|
|
|
2018-03-18 04:55:09 +00:00
|
|
|
UNPACK_BUFFER EQU $4000
|
|
|
|
|
|
|
|
LZ4_DATA_BEGIN EQU 11
|
2018-03-05 04:09:32 +00:00
|
|
|
|
|
|
|
start:
|
2018-03-18 04:55:09 +00:00
|
|
|
; set flags for HGR2
|
|
|
|
bit HIRES
|
|
|
|
bit PAGE1
|
|
|
|
bit FULLGR
|
|
|
|
|
|
|
|
lda #<(data+LZ4_DATA_BEGIN)
|
|
|
|
sta LZ4_SRC
|
|
|
|
lda #>(data+LZ4_DATA_BEGIN)
|
|
|
|
sta LZ4_SRC+1
|
|
|
|
|
|
|
|
lda #<(data_end-data+LZ4_DATA_BEGIN)
|
|
|
|
sta LZ4_END
|
|
|
|
lda #>(data_end-data+LZ4_DATA_BEGIN)
|
|
|
|
sta LZ4_END+1
|
|
|
|
|
2018-03-05 04:09:32 +00:00
|
|
|
jsr lz4_decode
|
|
|
|
|
2018-03-18 04:55:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
jmp $4000
|
2018-03-05 04:09:32 +00:00
|
|
|
|
|
|
|
;===============================================
|
|
|
|
; External modules
|
|
|
|
;===============================================
|
|
|
|
|
|
|
|
.include "../asm_routines/lz4_decode.s"
|
|
|
|
|
|
|
|
data:
|
|
|
|
.incbin "MODE7_DEMO.lz4"
|
2018-03-18 04:55:09 +00:00
|
|
|
data_end:
|