~rabbits/adelie

d6bf1b44004f3773baab252ae6ce29116a6f851d — Devine Lu Linvega 5 months ago 1dd92d0
Added archive command
2 files changed, 10 insertions(+), 6 deletions(-)

M makefile
M src/adelie.tal
M makefile => makefile +9 -5
@@ 7,18 7,22 @@ ROM=bin/${ID}.rom

all: ${ROM}

clean:
	@ rm -f ${ROM} ${ROM}.sym
lint:
	@ ${LIN} src/${ID}.tal
run: ${ROM}
run: all
	@ ${EMU} ${ROM} slides
install: ${ROM}
clean:
	@ rm -f ${ROM} ${ROM}.sym
install: all
	@ cp ${ROM} ${DIR}
uninstall:
	@ rm -f ${DIR}/${ID}.rom
archive: all
	@ cat src/${ID}.tal src/tga.tal src/assets.tal | sed 's/~[^[:space:]]\+//' > bin/res.tal
	@ ${ASM} bin/res.tal bin/res.rom && ${EMU} bin/res.rom slides
	@ cp bin/res.tal ../oscean/etc/${ID}.tal.txt

.PHONY: all clean lint run install uninstall
.PHONY: all clean lint run install uninstall archive

${ROM}: src/${ID}.tal
	@ mkdir -p bin && ${ASM} src/${ID}.tal ${ROM}

M src/adelie.tal => src/adelie.tal +1 -1
@@ 672,7 672,7 @@
		LDAk LDAkr STHr NEQk ?&d
		DUP EOR EQUk ?&d
		POP2 INC2 INC2r !&l
	&d ( a* c1 c2 `b* ~- f )
	&d ( a* c1 c2 `b* -- f )
		NIP2 POP2r EQU JMP2r

@sseg ( a-cap* b* -- f )