~crc_/retroforth#83: 
Unsigned Numbers & Extended Precision

I've never implemented unsigned operations in Retro up to this point, but there are cases where they can be useful.

I am now planning to add an I/O device to support some operations on them in the near future, and to allow for better precision on some operations.

Initial functions planned:

shift/right-unsigned

Extended precision (using 64-bits intermediate):

*/mod

What other functions should this support?

Status
RESOLVED IMPLEMENTED
Submitter
~crc_
Assigned to
No-one
Submitted
9 days ago
Updated
7 days ago
Labels
2021.10

~crc_ 7 days ago

I have implemented but not yet documented:

unsigned:shift
unsigned:+
unsigned:-
unsigned:*
unsigned:/mod
unsigned:eq?
unsigned:-eq?
unsigned:lt?
unsigned:gt?

In Napia, this is baked into the instruction set. Under Nga, it makes use of an I/O device to enable this, but implements the overall logic in a similar manner to Napia.

Implementation of */mod is next.

~crc_ REPORTED IMPLEMENTED 7 days ago

Register here or Log in to comment, or comment via email.