make DECRUNCH during build, and split out decrunch constants

This commit is contained in:
4am 2025-01-07 19:53:05 -05:00
parent 808d58cd75
commit cb4a68f7b5
5 changed files with 19 additions and 14 deletions

View File

@ -98,7 +98,7 @@ SFX.CONF=res/SFX.CONF
PREFS.CONF.SOURCE=res/PREFS.CONF PREFS.CONF.SOURCE=res/PREFS.CONF
GAMES.CONF.SOURCE=res/GAMES.CONF GAMES.CONF.SOURCE=res/GAMES.CONF
COVER=res/COVER COVER=res/COVER
DECRUNCH=res/DECRUNCH DECRUNCH=build/DECRUNCH
FINDER.DATA=res/Finder.Data FINDER.DATA=res/Finder.Data
FINDER.ROOT=res/Finder.Root FINDER.ROOT=res/Finder.Root
HELP=res/HELP HELP=res/HELP
@ -437,6 +437,9 @@ $(MD):
touch "$(CADIUS.LOG)" touch "$(CADIUS.LOG)"
@touch "$@" @touch "$@"
$(DECRUNCH): $(MD)
$(ACME) -o $(DECRUNCH) src/decrunch/exodecrunch.a
clean: clean:
rm -rf "$(BUILDDIR)"/ || rm -rf "$(BUILDDIR)" rm -rf "$(BUILDDIR)"/ || rm -rf "$(BUILDDIR)"

Binary file not shown.

13
src/decrunch/constants.a Normal file
View File

@ -0,0 +1,13 @@
!ifndef _EXO_CONSTANTS_ {
zp_len_lo = $a0
zp_len_hi = $a1
zp_src_lo = $a2
zp_src_hi = $a3
zp_bits_hi = $a4
zp_bitbuf = $a5
zp_dest_lo = $a6 ; dest addr lo
zp_dest_hi = $a7 ; dest addr hi
_EXO_CONSTANTS_=*
}

View File

@ -2,7 +2,6 @@
; the Exomizer homepage. ; the Exomizer homepage.
; It contains modifications made by qkumba to work with ACME assembler. ; It contains modifications made by qkumba to work with ACME assembler.
!cpu 6502 !cpu 6502
!to "DECRUNCH",plain
*=$200 *=$200
; ;
@ -66,17 +65,7 @@ EXTRA_TABLE_ENTRY_FOR_LENGTH_THREE = 1
; ------------------------------------------------------------------- ; -------------------------------------------------------------------
; zero page addresses used ; zero page addresses used
; ------------------------------------------------------------------- ; -------------------------------------------------------------------
zp_len_lo = $a7 !src "src/decrunch/constants.a"
zp_len_hi = $a8
zp_src_lo = $ae
zp_src_hi = zp_src_lo + 1
zp_bits_hi = $fc
zp_bitbuf = $fd
zp_dest_lo = zp_bitbuf + 1 ; dest addr lo
zp_dest_hi = zp_bitbuf + 2 ; dest addr hi
!IFDEF EXTRA_TABLE_ENTRY_FOR_LENGTH_THREE { !IFDEF EXTRA_TABLE_ENTRY_FOR_LENGTH_THREE {
encoded_entries = 68 encoded_entries = 68

View File

@ -1,5 +1,5 @@
; ;
; Index record for res/DECRUNCH ; Index record for build/DECRUNCH
; ;
; This file is automatically generated ; This file is automatically generated
; ;