From 8f6c3490d9b480283fbe4a1a01b8392b1fc9b154 Mon Sep 17 00:00:00 2001 From: Jali Date: Thu, 1 Jan 2026 20:20:44 +0100 Subject: [PATCH] Fix Jump instruction in Print field function --- src/sudoku.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sudoku.s b/src/sudoku.s index b2d1aec..8e3f3b9 100644 --- a/src/sudoku.s +++ b/src/sudoku.s @@ -109,8 +109,8 @@ PFIELD: PUSH P,A ;Save the A register. MOVE X,[440400,,FIELD] ;Store a bytepointer in X. PFIELN: .IOT CHTTYO,[^M] ;Print a carriage return. .IOT CHTTYO,[^J] ;Print a new line. - MOVE A,[440700,,HLINE] ;Print a horizontal line. - POPJ P,PUTLN + MOVE A,[440700,,HLINE] ;Print a horizontal line. + PUSHJ P,PUTLN MOVEI Y,011 ;Load the index register with 9. MOVEI B,174 ;Print a '|' symbol. .IOT CHTTYO,B