More Programs

Added math library WIP.
Added some other stuff.
This commit is contained in:
Anachronaut
2024-11-18 19:38:38 -05:00
committed by GitHub
parent fc2955cc21
commit bf7beec8ec
5 changed files with 150 additions and 3 deletions
+3 -1
View File
@@ -32,7 +32,7 @@ printString: ; Expects Data Pointer to be set to the beginning of
INCD ; Increment Data Pointer to the next character.
BRI printString ; Branch to the beginning of the loop.
printDone:
RET ; Return to the caller.
RET ; Return to the caller.
; Expects A to contain the value to be printed in decimal form.
printByteDecimal:
@@ -132,6 +132,8 @@ DecimalValue:
0x00 ; The tens place.
0x00 ; The hundreds place.
; For convenience, I'll pad this out so programs using this library store their data in a fresh page of memory.
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00