Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismael-VC committed Aug 18, 2024
1 parent eb2abba commit 672f45a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ setup:
@ echo "Setting up: ~/{${BIN_DIR},${ROMS_DIR}}"
@ mkdir -p ~/${BIN_DIR} ~/${ROMS_DIR}

backup:
@ echo "Backing: ./{${BIN_DIR},${ROM_DIR}}/* to ./${BAK_DIR}"
@ cp ${BIN_DIR}/* ${BAK_DIR}
@ cp ${ROM_DIR}/* ${BAK_DIR}

build: backup ${ROM}
build: ${ROM}
@ echo "Building: ./${ROM}*"
@ cd ${SRC_DIR} && ${ASM} ${TAL} ../${ROM}

Expand All @@ -53,14 +48,14 @@ disassemble: build
@ echo "Disassembling: ./${ROM}.dis"
@ ${EMU} ${DIS} ${ROM} > ${ROM}.dis

install: setup backup build dump symbols disassemble
install: setup build dump symbols disassemble
@ echo "Installing: ./{${BIN_DIR},${ROM_DIR}}/* at ~/{${BIN_DIR},${ROMS_DIR}}"
@ cp ${BIN_DIR}/* ~/${BIN_DIR}
@ cp ${ROM} ~/${ROMS_DIR}

test: install
@ echo "Testing: ~/${ROM_DIR}/${ID}.rom"
@ echo "~test/routines.tal \n sierpinski" | ${EMU} ${ROM_DIR}/${ID}.rom
@ echo "~test/routines.tal\nsierpinski\nbye" | ${EMU} ${ROM_DIR}/${ID}.rom

cli: install
@ echo "Running: ~/${BIN_DIR}/${ID}-cli"
Expand Down
4 changes: 2 additions & 2 deletions src/repl/routines.tal
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
[ LIT &in-esc 01 ] ?{
#01 ,&in-esc STR

DUP LIT \r NEQ ?{
DUPk LIT \r NEQ SWP LIT \n NEQ AND ?{
,&multiline LDR #00 EQU ,&multiline STR } }

DUP LIT \r NEQ ?{
DUPk LIT \r NEQ SWP LIT \n NEQ AND ?{
[ LIT &multiline 01 ] ?{
pstr: \reset-console-style \bold \bg-0 \fg-3 \0
~logger/info/multiline-prompt.tal
Expand Down

0 comments on commit 672f45a

Please sign in to comment.