Commit 875167a8 authored by petter's avatar petter

vam.zip for download, Bugfix by Jaak Randmets and build-encoding corrected


git-svn-id: https://www2.in.tum.de/repos/vam@4 e840d55b-1d80-4f23-a9d8-6aec749d046a
parent 952c6eea
......@@ -32,7 +32,7 @@
<target name="classes" depends="init">
<depend srcdir="${java}" destdir="${classes}" cache="${etc}" />
<javac srcdir="${java}" destdir="${classes}" verbose="off" listfiles="off"
source="1.4" target="1.4" debug="off">
source="1.4" target="1.4" debug="off" encoding="Cp1252">
</javac>
</target>
......
......@@ -6,7 +6,7 @@ public class GET extends MainCommand
public GET( int offset )
{
super("GET"+offset);
super("GET "+offset);
this.offset = offset;
}
......@@ -19,7 +19,7 @@ public class GET extends MainCommand
else
{
int number = memory.getIntValue( address+1 ); // Anzahl der Eintrge
if ( 0 < offset && offset < number )
if ( 0 <= offset && offset < number )
memory.store( memory.getIntValue(address+2)+offset, SP() );
else
mamaError( "Index out of range: "+offset+" not in [0,"+number+"]" );
......
File added
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