From 2c11b2ff26d4784c73ceeaf653f98fe23e018614 Mon Sep 17 00:00:00 2001 From: Jali Date: Sun, 11 Jan 2026 14:02:48 +0100 Subject: [PATCH] Exit the loop after printing field. --- src/sudoku.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sudoku.s b/src/sudoku.s index f9601ab..d9e35af 100644 --- a/src/sudoku.s +++ b/src/sudoku.s @@ -116,14 +116,13 @@ PFIELN: .IOT CHTTYO,[^M] ;Print a carriage return. MOVEI Y,011 ;Load the index register with 9. MOVEI B,174 ;Print a '|' symbol. .IOT CHTTYO,B -PFIENO: MOVEI B,040 ;Print a space. - .IOT CHTTYO,B +PFIENO: .IOT CHTTYO,[040] ;Print a space. ILDB B,X ;Load the next field. - SOJE C,PFIEEX ;Exit, if no more elements are read. ADDI B,060 ;Convert number into char. .IOT CHTTYO,B ;Print the number. .IOT CHTTYO,[040] ;Print a space .IOT CHTTYO,[174] ;Print a '|' symbol + SOJE C,PFIEEX ;Exit, if no more elements are read. SOJE Y,PFIELN ;End the line and start a new one. JUMPA PFIENO ;Jump back to print the next number.