This commit is contained in:
Denis Molony 2019-10-13 15:14:47 +10:00
parent 6da1441041
commit fb68f65a95
2 changed files with 34 additions and 33 deletions

View File

@ -212,7 +212,7 @@ public class ApplesoftBasicProgram extends BasicProgram
}
int ptr = endPtr + 2;
if (ptr < buffer.length)
if (ptr < buffer.length - 1) // sometimes there's an extra byte on the end
{
int offset = HexFormatter.unsignedShort (buffer, 0);
int programLoadAddress = offset - getLineLength (0);

View File

@ -2,7 +2,8 @@ package com.bytezone.diskbrowser.applefile;
public interface ApplesoftConstants
{
String[] tokens = { "END", "FOR ", "NEXT ", "DATA ", // 0x80 - 0x83
String[] tokens = { //
"END ", "FOR ", "NEXT ", "DATA ", // 0x80 - 0x83
"INPUT ", "DEL ", "DIM ", "READ ", // 0x84 - 0x87
"GR ", "TEXT ", "PR# ", "IN# ", // 0x88 - 0x8B
"CALL ", "PLOT ", "HLIN ", "VLIN ", // 0x8C - 0x8F