dos33fsprogs/mode7_demo/mode7_decompress.s
2018-03-18 00:55:09 -04:00

42 lines
638 B
ArmAsm

; Note: needs some extra work
; Set up initial pointer
; Skip/strip the LZ4 header
.include "zp.inc"
UNPACK_BUFFER EQU $4000
LZ4_DATA_BEGIN EQU 11
start:
; 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
jsr lz4_decode
jmp $4000
;===============================================
; External modules
;===============================================
.include "../asm_routines/lz4_decode.s"
data:
.incbin "MODE7_DEMO.lz4"
data_end: