Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismael-VC committed Aug 18, 2024
1 parent b1f1aa1 commit 1e1b17f
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ setup:

build:
@ echo "Building: ./${ROM}*"
@ # Sorry
@ cpp -P -w -D $DEBUG config/pre-options.tal -o config/options.tal
@ cpp -P -w -D $DEBUG src/debugger/routines/pre-after-eval.tal \
-o src/debugger/routines/after-eval.tal
@cpp -P -w -D $DEBUG src/debugger/routines/pre-before-eval.tal \
-o src/debugger/routines/before-eval.tal
@ cd ${SRC_DIR} && ${ASM} ${TAL} ../${ROM}

dump: build
Expand All @@ -58,19 +64,19 @@ test: install
@ echo "Testing: ~/${ROM_DIR}/${ID}.rom"
@ printf "%s\n" \
"@sierpinski ( -- ) ${MULTI}" \
" ( mask ) [ LIT2r 0a18 ] [ LIT2r 2018 ]" \
" ( size ) [ LIT2 &size 1001 ] SUB" \
" &>ver ( -- )" \
" DUP INCk" \
" &>pad ( length -- )" \
" DEOkr" \
" #01 SUB DUP ?&>pad" \
" &>fill ( length i -- )" \
" ANDk DUP2r ?{ POP2r ORA2kr } DEOr DEOkr" \
" INC ADDk ,&size LDR LTH ?&>fill" \
" POP2 OVR2r DEOr" \
" #01 SUB INCk ?&>ver" \
" POP POP2r POP2r JMP2r ${MULTI}" \
" ( mask ) [ LIT2r 0a18 ] [ LIT2r 2018 ]" \
" ( size ) [ LIT2 &size 1001 ] SUB" \
" &>ver ( -- )" \
" DUP INCk" \
" &>pad ( length -- )" \
" DEOkr" \
" #01 SUB DUP ?&>pad" \
" &>fill ( length i -- )" \
" ANDk DUP2r ?{ POP2r ORA2kr } DEOr DEOkr" \
" INC ADDk ,&size LDR LTH ?&>fill" \
" POP2 OVR2r DEOr" \
" #01 SUB INCk ?&>ver" \
" POP POP2r POP2r JMP2r ${MULTI}" \
"sierpinski" \
"bye" | ${EMU} ${ROMS_DIR}/${ID}.rom

Expand All @@ -89,3 +95,7 @@ gui: install
EXIT_CODE=$$? ; \
stty ${TTY}; \
exit $$EXIT_CODE

clean:
@ echo "Cleaning: ${ROM_DIR}/*"
@ rm ${ROM_DIR}/*

0 comments on commit 1e1b17f

Please sign in to comment.