Update print.asm
This commit is contained in:
+6
-6
@@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
printString:
|
printString:
|
||||||
CALL saveRegisters ; Store the registers so we can restore them later.
|
CALL saveRegisters ; Store the registers so we can restore them later.
|
||||||
printLoop:
|
printLoop:
|
||||||
LDA ; Move the first character of the string into A.
|
LDA ; Move the first character of the string into A.
|
||||||
BRA Return ; If A is NULL, the string is finished, so return.
|
BRA Return ; If A is NULL, the string is finished, so return.
|
||||||
OUTA 0x00 ; Output the character.
|
OUTA 0x00 ; Output the character.
|
||||||
INCD ; Increment Data Pointer to the next character.
|
INCD ; Increment Data Pointer to the next character.
|
||||||
BRI printLoop ; Branch to the beginning of the loop.
|
BRI printLoop ; Branch to the beginning of the loop.
|
||||||
|
|
||||||
lineFeed:
|
lineFeed:
|
||||||
CALL saveRegisters ; Save the registers so they can be restored.
|
CALL saveRegisters ; Save the registers so they can be restored.
|
||||||
|
|||||||
Reference in New Issue
Block a user