aboutsummaryrefslogtreecommitdiff
path: root/ia32/math.sts
diff options
context:
space:
mode:
Diffstat (limited to 'ia32/math.sts')
-rw-r--r--ia32/math.sts16
1 files changed, 16 insertions, 0 deletions
diff --git a/ia32/math.sts b/ia32/math.sts
index 1864a93..95ca5f7 100644
--- a/ia32/math.sts
+++ b/ia32/math.sts
@@ -17,6 +17,22 @@ defasm /
# 50 ?' ; push eax
next
+defasm mod
+ # 5b ?' ; pop ebx
+ # 58 ?' ; pop eax
+ # 31 ?' # d2 ?' ; xor edx, edx
+ # f7 ?' # f3 ?' ; div ebx
+ # 52 ?' ; push edx
+next
+
+defasm div
+ # 5b ?' ; pop ebx
+ # 58 ?' ; pop eax
+ # 31 ?' # d2 ?' ; xor edx, edx
+ # f7 ?' # f3 ?' ; div ebx
+ # 50 ?' ; push eax
+next
+
defasm =
# 5b ?' ; pop ebx
# 58 ?' ; pop eax