A2osX/INC/LIBPAK.I.txt
2019-10-14 07:23:09 +02:00

54 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
AUTO 3,1
.LIST OFF
*--------------------------------------
TOP.MAX .EQ 32
BL.MIN .EQ 3
BL.MAX .EQ BL.MIN+31
*--------------------------------------
PAK.B.BYTE8.W .EQ 1
PAK.B.BYTE8 .EQ %0
PAK.B.TOP8.W .EQ 5
PAK.B.TOP8 .EQ %10.000
PAK.B.TOP16.W .EQ 6
PAK.B.TOP16 .EQ %110.000
PAK.B.TOP24.W .EQ 8
PAK.B.TOP24 .EQ %11100.000
PAK.B.TOP32.W .EQ 8
PAK.B.TOP32 .EQ %11101.000
PAK.B.BL.W .EQ 4
PAK.B.BL .EQ %1111
*--------------------------------------
* Shunk Header :
* WORD : Target UNCompressed Length
* !!! USED TO STOP UNPACK,NO EOF TOKEN!!!
*--------------------------------------
S.PAKSHNK.ULEN .EQ 0 Uncompressed length
S.PAKSHNK.BLBITS .EQ 2 1.lll.oooo
S.PAKSHNK.TOPCNT .EQ 3
S.PAKSHNK.TOPBYTES .EQ 4
* TOP Bytes ....
* DATA
S.PAKSHNK .EQ 2+1+1+TOP.MAX
*--------------------------------------
S.PAKSTAT.PASS1 .EQ 0
S.PAKSTAT.PASS2 .EQ 2
S.PAKSTAT.TOP8 .EQ 4
S.PAKSTAT.TOP16 .EQ 6
S.PAKSTAT.TOP24 .EQ 8
S.PAKSTAT.TOP32 .EQ 10
S.PAKSTAT.BYTE8 .EQ 12
S.PAKSTAT.BL .EQ 14
*
S.PAKSTAT .EQ 16
*--------------------------------------
LIBPAK.Pak .EQ 4
*--------------------------------------
MAN
SAVE INC/LIBPAK.I
LOAD USR/SRC/LIB/LIBPAK.S
ASM