aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/uslashmod.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/uslashmod.asm')
-rw-r--r--amforth-6.5/avr8/words/uslashmod.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/uslashmod.asm b/amforth-6.5/avr8/words/uslashmod.asm
new file mode 100644
index 0000000..0d9b5aa
--- /dev/null
+++ b/amforth-6.5/avr8/words/uslashmod.asm
@@ -0,0 +1,16 @@
+; (u1 u2 -- rem quot)
+; Arithmetics
+; unsigned division with remainder
+VE_USLASHMOD:
+ .dw $ff05
+ .db "u/mod",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_USLASHMOD
+XT_USLASHMOD:
+ .dw DO_COLON
+PFA_USLASHMOD:
+ .dw XT_TO_R
+ .dw XT_ZERO
+ .dw XT_R_FROM
+ .dw XT_UMSLASHMOD
+ .dw XT_EXIT