only include decomp test when settings are right

This commit is contained in:
Connor Olding 2018-09-29 07:07:44 +02:00
parent 15a0bf120a
commit 5f0b046bad
2 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,8 @@ constant K_DEBUG(0) // slows down interrupt handling to enable debug routines
constant HIRES(1)
constant HICOLOR(1)
constant MAIN_DECOMP_IMAGE(HIRES & HICOLOR)
constant MAIN_BASE(0x800E)
constant MAIN_COUNTS(0x0010)
constant MAIN_SP_TASK(0x0040)

View file

@ -24,7 +24,7 @@ include "kernel.asm"
Main:
if 0 {
if MAIN_DECOMP_IMAGE {
DecompImage:
lui s0, MAIN_BASE
@ -170,12 +170,15 @@ Die:
j Die
nop
include "lzss.baku.unsafe.asm"
if MAIN_DECOMP_IMAGE {
include "lzss.baku.unsafe.asm"
align(16); insert LZ_BAKU, "res/Image.baku.lzss"
}
include "dlist.asm"
include "task.asm"
//align(16); insert FONT, "res/dwarf.1bpp"
//align(16); insert LZ_BAKU, "res/Image.baku.lzss"
if pc() > (MAIN_BASE << 16) {
error "ran out of memory for code and data"