Added stuff. Fixed bug.

Data Pointer value now properly displayed in debug mode.
Added conditional calls to match conditional branches.
This commit is contained in:
Anachronaut
2024-10-31 13:30:15 -04:00
committed by GitHub
parent f8848adf8c
commit 228cf0593a
12 changed files with 414 additions and 44 deletions
@@ -0,0 +1,25 @@
; Tests for the printDecimal subroutine.
#Program
printByteDecimalTest:
INIB 0xFF ; Load 255 into B.
printDecimalTestloop:
SUB
CCF ; Clear the Carry Flag.
CALL printByteDecimal ; Print the value.
INCA ; Increment it.
PSHA
INIA 0x00
CALL blankSpace
POPA
BRQ printDecimalTestend ; If Q is zero, we're done.
BRI printDecimalTestloop ; Branch back to the start of the loop.
printDecimalTestend:
CALL lineFeed
RET
#Data
Space:
" "