From 228c8b20e26c4f70fde3eb45b99f9fe1b520b5a2 Mon Sep 17 00:00:00 2001 From: Jeremiah Orians Date: Thu, 13 Jul 2017 20:51:57 -0400 Subject: [PATCH] Function to help beginners --- stage3/shortcuts/forth.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 stage3/shortcuts/forth.sh diff --git a/stage3/shortcuts/forth.sh b/stage3/shortcuts/forth.sh new file mode 100755 index 0000000..cfa83a8 --- /dev/null +++ b/stage3/shortcuts/forth.sh @@ -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"