A2osX/INC/LIBPAK.I.txt
2019-10-11 15:53:03 +02:00

64 lines
1.4 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
REP.MAX .EQ 1+254
BL.MIN .EQ 3
BL.MAX .EQ 3+63
STR.MIN .EQ 127 DISABLED
STR.MAX .EQ 3+15
*--------------------------------------
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 7
PAK.B.TOP24 .EQ %1110.000
PAK.B.TOP32.W .EQ 8
PAK.B.TOP32 .EQ %11110.000
PAK.B.REP.W .EQ 6
PAK.B.REP .EQ %111110
PAK.B.BL.W .EQ 6
PAK.B.BL .EQ %111111
PAK.B.STR.W .EQ 6 DISABLED
PAK.B.STR .EQ %01.0000
*--------------------------------------
* 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.STR .EQ 14
S.PAKSTAT.REPN .EQ 16
S.PAKSTAT.BL .EQ 18
*
S.PAKSTAT .EQ 20
*--------------------------------------
LIBPAK.Pak .EQ 4
*--------------------------------------
MAN
SAVE INC/LIBPAK.I
LOAD USR/SRC/LIB/LIBPAK.S
ASM