2021-10-13 16:12:38 +02:00
|
|
|
# Unsigned Numbers
|
|
|
|
|
|
|
|
~~~
|
2021-10-14 15:29:09 +02:00
|
|
|
:unsigned:+ (nn-n) #0 #8101 io:scan-for io:invoke \ad...... ;
|
|
|
|
:unsigned:- (nn-n) #0 #8101 io:scan-for io:invoke \su...... ;
|
|
|
|
:unsigned:* (nn-n) #0 #8101 io:scan-for io:invoke \mu...... ;
|
|
|
|
:unsigned:/mod (nn-nn) #0 #8101 io:scan-for io:invoke \di...... ;
|
|
|
|
:unsigned:eq? (nn-f) #0 #8101 io:scan-for io:invoke \eq...... ;
|
|
|
|
:unsigned:-eq? (nn-f) #0 #8101 io:scan-for io:invoke \ne...... ;
|
|
|
|
:unsigned:lt? (nn-f) #0 #8101 io:scan-for io:invoke \lt...... ;
|
|
|
|
:unsigned:gt? (nn-f) #0 #8101 io:scan-for io:invoke \gt...... ;
|
|
|
|
:unsigned:shift (nn-n) #0 #8101 io:scan-for io:invoke \sh...... ;
|
2021-10-14 18:01:36 +02:00
|
|
|
:unsigned:*/mod (nnn-nn) #1 #0 #8101 io:scan-for dup io:invoke io:invoke ;
|
|
|
|
:*/mod (nnn-nn) #1 #8101 io:scan-for io:invoke ;
|
2021-10-13 16:12:38 +02:00
|
|
|
~~~
|
2021-10-14 18:01:36 +02:00
|
|
|
|
|
|
|
~~~
|
|
|
|
'interface/unsigned.retro s:keep
|
|
|
|
dup 'unsigned:+ d:lookup d:source store
|
|
|
|
dup 'unsigned:- d:lookup d:source store
|
|
|
|
dup 'unsigned:* d:lookup d:source store
|
|
|
|
dup 'unsigned:/mod d:lookup d:source store
|
|
|
|
dup 'unsigned:eq? d:lookup d:source store
|
|
|
|
dup 'unsigned:-eq? d:lookup d:source store
|
|
|
|
dup 'unsigned:lt? d:lookup d:source store
|
|
|
|
dup 'unsigned:gt? d:lookup d:source store
|
|
|
|
dup 'unsigned:shift d:lookup d:source store
|
|
|
|
dup 'unsigned:*/mod d:lookup d:source store
|
|
|
|
dup '*/mod d:lookup d:source store
|
|
|
|
drop
|
|
|
|
~~~
|
|
|
|
|