From d22dd7ab5992b5de58aa92af96cc6d32a1077fc2 Mon Sep 17 00:00:00 2001 From: Jali Date: Sun, 11 Jan 2026 21:56:45 +0100 Subject: [PATCH] Fix bug: If JCL terminates with a carriage return, stop processing --- src/sudoku.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sudoku.s b/src/sudoku.s index 5990c9e..adb4ddf 100644 --- a/src/sudoku.s +++ b/src/sudoku.s @@ -75,7 +75,7 @@ TOSLP: ILDB D,A ;Load the next character from A. JUMPE D,TOSEN ;Exit the loop, if charachter is null. CAIN D,40 ;If the character is a whitespace, JUMPA TOSEN ;exit the loop. - CAIN D,[^M] ;If the character is a carriage return + CAIN D,15 ;If the character is a carriage return JUMPA TOSEN ;exit the loop. CAIL D,140 ;If the character is > 96, SUBI D,40 ;then cut it down, so it's in range.