implemented almost all math operations

This commit is contained in:
Irmen de Jong
2020-08-27 20:47:22 +02:00
parent a77d3c92ad
commit d97da3bb7b
7 changed files with 845 additions and 726 deletions

View File

@@ -86,7 +86,8 @@ result .byte 0,0,0,0
.pend
divmod_ub .proc
divmod_ub_asm .proc
; TODO divmod_ub_asm doesn't work correctly. (remainder = ok, quotient = FAULTY)
; -- divide A by Y, result quotient in Y, remainder in A (unsigned)
; division by zero will result in quotient = 255 and remainder = original number
sty P8ZP_SCRATCH_REG