From 26e6233f8a611ce12446bd6654f71f4cb4da7eb7 Mon Sep 17 00:00:00 2001 From: Anachronaut <75824887+RealBusinessAccount@users.noreply.github.com> Date: Sun, 27 Oct 2024 20:54:21 -0400 Subject: [PATCH] Update print.asm --- Programs/print.asm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Programs/print.asm b/Programs/print.asm index 56c624b..a59ab1d 100644 --- a/Programs/print.asm +++ b/Programs/print.asm @@ -9,12 +9,12 @@ printString: CALL saveRegisters ; Store the registers so we can restore them later. -printLoop: - LDA ; Move the first character of the string into A. - BRA Return ; If A is NULL, the string is finished, so return. - OUTA 0x00 ; Output the character. - INCD ; Increment Data Pointer to the next character. - BRI printLoop ; Branch to the beginning of the loop. + printLoop: + LDA ; Move the first character of the string into A. + BRA Return ; If A is NULL, the string is finished, so return. + OUTA 0x00 ; Output the character. + INCD ; Increment Data Pointer to the next character. + BRI printLoop ; Branch to the beginning of the loop. lineFeed: CALL saveRegisters ; Save the registers so they can be restored.