Update print.asm

This commit is contained in:
Anachronaut
2024-10-27 20:55:29 -04:00
committed by GitHub
parent 26e6233f8a
commit f9308338c4
+5 -5
View File
@@ -10,11 +10,11 @@
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.
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.