mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-02-18 05:30:29 +00:00
debugged bug in debug
This commit is contained in:
parent
0e40e25710
commit
f30fe1a78a
@ -206,17 +206,13 @@ public class CPMBasicFile extends BasicProgram
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
int lineNumber = getShort (buffer, ptr + 2);
|
int lineNumber = getShort (buffer, ptr + 2);
|
||||||
text.append (String.format (" %d ", lineNumber));
|
|
||||||
|
|
||||||
lastPtr = ptr;
|
lastPtr = ptr;
|
||||||
ptr = nextAddress - loadAddress;
|
ptr = nextAddress - loadAddress;
|
||||||
|
|
||||||
text.append (HexFormatter.getHexString (buffer, lastPtr + 4, ptr - lastPtr));
|
text.append (String.format (" %d ", lineNumber));
|
||||||
|
text.append (HexFormatter.getHexString (buffer, lastPtr + 4, ptr - lastPtr - 4));
|
||||||
text.append ("\n");
|
text.append ("\n");
|
||||||
if (ptr < 0 || ptr >= buffer.length)
|
|
||||||
break;
|
|
||||||
if (buffer[ptr - 1] != 0) // end of previous line
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return text.toString ();
|
return text.toString ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user