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
+27
View File
@@ -0,0 +1,27 @@
; A test for the new math subroutines.
#Include ../Libraries/print.asm
#Include ../Libraries/math.asm
#Program
start:
SETD SomeInt16Operands
CALL int16sub
BRC end
LDA
CALL printByteHex
INCD
LDA
CALL printByteHex
INIA 0x3A
OUTA 0x00
BRI start
end:
CALL lineFeed
HALT
#Data
SomeInt16Operands:
0xFF 0xFF
0x00 0x01