Files
SplitBit-Emulator/Programs/testPrograms/printDecimalTest.asm
T
Anachronaut 5e854ee7f9 Updated test programs.
Test programs now work correctly with the latest CPU core changes.
2024-11-20 13:59:40 -05:00

24 lines
444 B
NASM

; Tests for the printDecimal subroutine.
#Program
printByteDecimalTest:
INIB 0xFF ; Load 255 into B.
printDecimalTestloop:
; Print A and a blank space.
CALL printByteDecimal
CALL blankSpace
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
RET
#Data
Space:
" "