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:
@@ -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:
|
||||
" "
|
||||
Reference in New Issue
Block a user