mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-19 12:32:35 +00:00
69c1ecd5fb
up to about 40s
42 lines
638 B
ArmAsm
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:
|