From 7a571b75a9cf3d3547d862c7125488006f376e2c Mon Sep 17 00:00:00 2001 From: kitty Date: Fri, 6 Mar 2026 17:54:44 +1100 Subject: */mod --- jefs.s | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'jefs.s') 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 {{{ -- cgit v1.2.3