From ecbce807e5e32bb7360628315d0776ffa586b712 Mon Sep 17 00:00:00 2001 From: Jali Date: Mon, 4 Aug 2025 00:36:40 +0200 Subject: [PATCH] Format code --- src/SUDOKU.MAC | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/SUDOKU.MAC b/src/SUDOKU.MAC index 7682ae6..1512bff 100644 --- a/src/SUDOKU.MAC +++ b/src/SUDOKU.MAC @@ -22,14 +22,14 @@ START: MOVE P,[-PDLLEN,,PDL-1] ;Initialize the stack. MOVE A,[BPTR,,HELLO] ;Load A with a byte pointer to HELLO. PUSHJ P,OUTSTR ;Print the out string. JRST DONE ;Jump to the end of the program. -OUTSTR: HRLI A,BPTR ;Ensure, A is a byte pointer. -OUT: ILDB B,A ;Load the next byte from A. - JUMPE B,OUTEX ;Exit the routine, if all bytes are done. - .IOT CHTTYO,B ;Print a character. - JRST OUT ;Jump back to print the next character. -OUTEX: .IOT CHTTYO,[^M] ;Print carriage return and - .IOT CHTTYO,[^J] ;newline characters. - POPJ P, ;Return from the subroutine. -DONE: .LOGOUT 2, ;Exit point for the program. -HELLO: ASCIZ /HELLO WORLD/ ;Define example string. -END START +OUTSTR: HRLI A,BPTR ;Ensure, A is a byte pointer. +OUT: ILDB B,A ;Load the next byte from A. + JUMPE B,OUTEX ;Exit the routine, if all bytes are done. + .IOT CHTTYO,B ;Print a character. + JRST OUT ;Jump back to print the next character. +OUTEX: .IOT CHTTYO,[^M] ;Print carriage return and + .IOT CHTTYO,[^J] ;newline characters. + POPJ P, ;Return from the subroutine. +DONE: .LOGOUT 2, ;Exit point for the program. +HELLO: ASCIZ /HELLO WORLD/ ;Define example string. +END START