integer basic

This commit is contained in:
Denis Molony 2017-06-24 16:22:44 +10:00
parent 6c84ceba7d
commit 48f0c443ce

View File

@ -62,7 +62,7 @@ public class IntegerBasicProgram extends AbstractFile
ptr += lineLength;
}
if (ptr < buffer.length)
if ((ptr + 4) < buffer.length)
{
int address = HexFormatter.intValue (buffer[ptr + 2], buffer[ptr + 3]);
int remainingBytes = buffer.length - ptr - 5;