Function to help beginners

This commit is contained in:
Jeremiah Orians 2017-07-13 20:51:57 -04:00
parent 59393b4985
commit 228c8b20e2
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
1 changed files with 6 additions and 0 deletions

6
stage3/shortcuts/forth.sh Executable file
View File

@ -0,0 +1,6 @@
#!/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"