Updated test programs.

Test programs now work correctly with the latest CPU core changes.
This commit is contained in:
Anachronaut
2024-11-20 13:59:40 -05:00
committed by GitHub
parent e763a3e4de
commit 5e854ee7f9
4 changed files with 25 additions and 27 deletions
+7 -9
View File
@@ -3,17 +3,15 @@
#Program
printByteDecimalTest:
INIB 0xFF ; Load 255 into B.
INIB 0xFF ; Load 255 into B.
printDecimalTestloop:
SUB
CCF ; Clear the Carry Flag.
CALL printByteDecimal ; Print the value.
INCA ; Increment it.
PSHA
INIA 0x00
; Print A and a blank space.
CALL printByteDecimal
CALL blankSpace
POPA
BRQ printDecimalTestend ; If Q is zero, we're done.
INCA ; Increment A.
DECB ; Decrement B.
; If B underflows, we're done.
BRC printDecimalTestend
BRI printDecimalTestloop ; Branch back to the start of the loop.
printDecimalTestend:
CALL lineFeed