summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-03-06 17:54:44 +1100
committerkitty <nepeta@canaglie.net>2026-03-06 17:54:44 +1100
commit7a571b75a9cf3d3547d862c7125488006f376e2c (patch)
tree4deb7cd54ea9994b7df9e27f2c1fe840b3a36017 /jefs.s
parent0647f71d8a4dd5e93c0d64f13cea43978cef3ec8 (diff)
*/mod
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/jefs.s b/jefs.s
index 2ad8020..47cb67b 100644
--- a/jefs.s
+++ b/jefs.s
@@ -916,6 +916,18 @@ defword "xor", _xor, 0
defword "invert", invert, 0
not qword [r14]
ret
+
+defword "*/mod", starslashmod, 0
+ pspop r15 ; n3
+ pspop r13 ; n2
+ pspop rax ; n1
+
+ imul r13
+ idiv r15
+
+ pspush rdx
+ pspush rax
+ ret
; }}}
; comparison {{{