retroforth/interface/unsigned.retro
crc 45f3f7931e initial unsigned support is working
FossilOrigin-Name: 1853c8a951e005c9ea4d923a8ffbc3394d2554c9cca71d97afb7ffb387bea3d6
2021-10-13 14:12:38 +00:00

13 lines
576 B
Forth

# Unsigned Numbers
~~~
:unsigned:+ (nn-n) #8101 io:scan-for io:invoke \ad...... ;
:unsigned:- (nn-n) #8101 io:scan-for io:invoke \su...... ;
:unsigned:* (nn-n) #8101 io:scan-for io:invoke \mu...... ;
:unsigned:/mod (nn-nn) #8101 io:scan-for io:invoke \di...... ;
:unsigned:eq? (nn-f) #8101 io:scan-for io:invoke \eq...... ;
:unsigned:-eq? (nn-f) #8101 io:scan-for io:invoke \ne...... ;
:unsigned:lt? (nn-f) #8101 io:scan-for io:invoke \lt...... ;
:unsigned:gt? (nn-f) #8101 io:scan-for io:invoke \gt...... ;
:unsigned:shift (nn-n) #8101 io:scan-for io:invoke \sh...... ;
~~~