summaryrefslogtreecommitdiff
path: root/tools/HardwareSimulator.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/HardwareSimulator.bat')
-rw-r--r--tools/HardwareSimulator.bat30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/HardwareSimulator.bat b/tools/HardwareSimulator.bat
new file mode 100644
index 0000000..76baa31
--- /dev/null
+++ b/tools/HardwareSimulator.bat
@@ -0,0 +1,30 @@
+@echo off
+
+rem $Id: HardwareSimulator.bat,v 1.3 2014/05/10 00:52:43 marka Exp $
+rem mark.armbrust@pobox.com
+
+setlocal
+if not "%2"=="" goto :USAGE
+if "%~1"=="/?" (
+:USAGE
+ echo Usage:
+ echo HardwareSimulator Starts the Hardware Simulator in
+ echo interactive mode.
+ echo HardwareSimulator FILE.tst Starts the Hardware Simulator and runs the
+ echo FILE.tst test script. The success/failure
+ echo message is printed to the command console.
+ exit -b
+)
+if not "%~1"=="" (
+ set "_arg1=%~f1"
+)
+pushd "%~dp0"
+if "%~1"=="" (
+ start javaw -classpath "%CLASSPATH%;.;bin/classes;bin/lib/Hack.jar;bin/lib/HackGUI.jar;bin/lib/Simulators.jar;bin/lib/SimulatorsGUI.jar;bin/lib/Compilers.jar" ^
+ HardwareSimulatorMain
+) else (
+rem 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" ^
+ HardwareSimulatorMain "%_arg1%"
+)
+popd