Commit 019f3055 authored by Atze Dijkstra's avatar Atze Dijkstra

2.2.0 distr

parent bb5bf64e
lx:
lx: bra lz
ly:
l1:
lz: ldc 3
ldc 4
ldc -4
ldc 0x5
ldc -0x6
ldc l3
annote SP -3 0 red "Pushed constants"
add
mul
sub
bra l2
l3: bra l1
l2: bra l3
ldc l4
l4: bsr l4
l1: halt
lz: ldc 3
ldc 4
ldc -4
ldc 0x5
ldc -0x6
ldc ly
annote SP -3 0 red "Pushed constants"
add
mul
sub
trap 0
bra l1
......@@ -37,7 +37,7 @@ public class Config
public static final String version() { return "2.2.0" ; }
public static final String versionDate() { return "June 3, 2015" ; }
public static final String versionDate() { return "June 16, 2015" ; }
public static final String author() { return "Atze Dijkstra, Utrecht University" ; }
......
......@@ -56,11 +56,13 @@ public class Runner extends Thread
System.out.println("Simple Stack Machine Interpreter");
System.out.println("Version " + Config.version() + ", " + Config.versionDate());
System.out.println("usage: [--clisteps <steps>] [--cli] [--file <path> OR --stdin]");
System.out.println("\t--clisteps <steps>: The amount of steps to run. -1 for infinite(default). Only in cli mode");
System.out.println("\t--stdin: Read code from stdin");
System.out.println("\t--file <path>: Read code from path");
System.out.println("\t--cli: No GUI, runs code and exits on halt");
System.out.println("\t--guidelay: Amount of time to sleep in milliseconds between steps in the GUI. Default: 50");
System.out.println(" --help : Print this help");
System.out.println(" --version : Print version");
System.out.println(" --clisteps <steps> : The amount of steps to run. -1 for infinite(default). Only in cli mode");
System.out.println(" --stdin : Read code from stdin");
System.out.println(" --file <path> : Read code from path");
System.out.println(" --cli : No GUI, runs code and exits on halt");
System.out.println(" --guidelay : Amount of time to sleep in milliseconds between steps in the GUI. Default: 50");
System.exit(1);
}
......@@ -92,6 +94,13 @@ public class Runner extends Thread
for (int i = 0; i< args.length; i++) {
String key = args[i];
switch(key) {
case "--help":
usage();
break;
case "--version":
System.out.println( Config.version() );
System.exit(0);
break;
case "--clisteps":
i++;
steps = Long.parseLong(args[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment