Found bug in Key Perfect 5.0. Once a REM was detected... it never got reset. Doh!

This commit is contained in:
Rob Greene
2025-11-18 12:38:49 -06:00
parent 5a3eb9bc77
commit fe5026ad61
2 changed files with 2 additions and 2 deletions
@@ -131,7 +131,6 @@ public class MicrosparcKeyPerfect5 implements Visitor {
Checksum lineChecksum = new Checksum();
Checksum pgmChecksum = new Checksum();
final List<Integer> lines = new ArrayList<>();
boolean inComment = false;
while (code.hasRemaining()) {
int ptr = code.getShort();
if (ptr == 0) break;
@@ -144,6 +143,7 @@ public class MicrosparcKeyPerfect5 implements Visitor {
pgmChecksum.addByte(b2);
lines.add(b2 << 8 | b1);
// Process tokenized line...
boolean inComment = false;
int ch = 0;
do {
ch = Byte.toUnsignedInt(code.get());
+1 -1
View File
@@ -234,4 +234,4 @@ tests:
------------- --------
1 - 160 E11CFC2E
170 - 260 CF1C6F7F
PROGRAM TOTAL
PROGRAM TOTAL D6462CDD