From 5901ea87cea8ed3726899ce72b9d5c7b2a1a8e7b Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Mon, 22 Feb 2021 20:11:52 +1000 Subject: [PATCH] tidying --- .../applefile/ApplesoftBasicProgram.java | 14 -------------- .../bytezone/diskbrowser/applefile/SubLine.java | 5 ++--- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/com/bytezone/diskbrowser/applefile/ApplesoftBasicProgram.java b/src/com/bytezone/diskbrowser/applefile/ApplesoftBasicProgram.java index e596dd7..0159c77 100644 --- a/src/com/bytezone/diskbrowser/applefile/ApplesoftBasicProgram.java +++ b/src/com/bytezone/diskbrowser/applefile/ApplesoftBasicProgram.java @@ -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); - } - } } // ---------------------------------------------------------------------------------// diff --git a/src/com/bytezone/diskbrowser/applefile/SubLine.java b/src/com/bytezone/diskbrowser/applefile/SubLine.java index cea892b..3a813af 100644 --- a/src/com/bytezone/diskbrowser/applefile/SubLine.java +++ b/src/com/bytezone/diskbrowser/applefile/SubLine.java @@ -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 = "";