This commit is contained in:
Denis Molony 2021-02-22 20:11:52 +10:00
parent 30c44770d3
commit 5901ea87ce
2 changed files with 2 additions and 17 deletions

View File

@ -390,20 +390,6 @@ public class ApplesoftBasicProgram extends BasicProgram implements ApplesoftCons
if (ifIndent > 0)
alignEqualsPos = 0;
}
if (false)
{
int ptr = endPtr + 2;
if (ptr < buffer.length - 1) // sometimes there's an extra byte on the end
{
int linkField = unsignedShort (buffer, 0);
int programLoadAddress = linkField - getLineLength (0);
fullText.append ("\nExtra data:\n\n");
fullText.append (HexFormatter.formatNoHeader (buffer, ptr, buffer.length - ptr,
programLoadAddress + ptr));
fullText.append (NEWLINE);
}
}
}
// ---------------------------------------------------------------------------------//

View File

@ -80,9 +80,8 @@ public class SubLine implements ApplesoftConstants
else if (isEndOfLine (firstByte)) // empty subline
return;
else // probably Beagle Bros 0D or 0A
System.out.printf ("%s unexpected bytes at %5d: %s%n", parent.parent.name,
parent.lineNumber,
HexFormatter.formatNoHeader (buffer, startPtr, length).substring (7));
System.out.printf ("%s unexpected bytes at line %5d:%n%s%n", parent.parent.name,
parent.lineNumber, HexFormatter.formatNoHeader (buffer, startPtr, length));
}
String var = "";