stage0/stage3/shortcuts/forth.sh

7 lines
206 B
Bash
Raw Normal View History

2017-07-14 01:51:57 +01:00
#!/bin/sh
# Pass the name of the FORTH Script you wish to test as the only argument
TMP=$(mktemp)
cat stage3/inital_library.fs "$1" > "$TMP"
./bin/vm --rom roms/forth --memory 4M --tape_01 "$TMP"
rm "$TMP"