aboutsummaryrefslogtreecommitdiff
path: root/tools/CPUEmulator.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/CPUEmulator.sh')
-rwxr-xr-xtools/CPUEmulator.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/CPUEmulator.sh b/tools/CPUEmulator.sh
deleted file mode 100755
index 033d9d7..0000000
--- a/tools/CPUEmulator.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env sh
-
-# $Id: CPUEmulator.sh,v 1.1 2014/06/17 21:14:01 marka Exp $
-# mark.armbrust@pobox.com
-
-# User's CDPATH can interfere with cd in this script
-unset CDPATH
-# Get the true name of this script
-script="`test -L "$0" && readlink -n "$0" || echo "$0"`"
-dir="$PWD"
-cd "`dirname "$script"`"
-if [ \( $# -gt 1 \) -o \( "$1" = "-h" \) -o \( "$1" = "--help" \) ]
-then
- echo "Usage:"
- echo " `basename "$0"` Starts the CPU Emulator in interactive mode."
- echo " `basename "$0"` FILE.tst Starts the CPU Emulator and runs the File.tst"
- echo " test script. The success/failure message"
- echo " is printed to the command console."
-elif [ $# -eq 0 ]
-then
- # Run CPU emulator in interactive mode
- java -classpath "${CLASSPATH}:bin/classes:bin/lib/Hack.jar:bin/lib/HackGUI.jar:bin/lib/Simulators.jar:bin/lib/SimulatorsGUI.jar:bin/lib/Compilers.jar" CPUEmulatorMain &
-else
- # Convert arg1 to an absolute path and run CPU emulator with arg1
- if [ `echo "$1" | sed -e "s/\(.\).*/\1/"` = / ]
- then
- arg1="$1"
- else
- arg1="${dir}/$1"
- fi
-# echo Running "$arg1"
- java -classpath "${CLASSPATH}:bin/classes:bin/lib/Hack.jar:bin/lib/HackGUI.jar:bin/lib/Simulators.jar:bin/lib/SimulatorsGUI.jar:bin/lib/Compilers.jar" CPUEmulatorMain "$arg1"
-fi