From 9392f52163b6629160fdb840c3e69126651df6cc Mon Sep 17 00:00:00 2001 From: exegete Date: Thu, 29 Oct 2020 15:26:21 +0300 Subject: SML language overview added. --- sts/ia32/math.sts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sts/ia32/math.sts') diff --git a/sts/ia32/math.sts b/sts/ia32/math.sts index 609a21a..2997aeb 100644 --- a/sts/ia32/math.sts +++ b/sts/ia32/math.sts @@ -15,20 +15,20 @@ defasm mul # 50 ?' ; push eax next -defasm mod +defasm div # 5b ?' ; pop ebx # 58 ?' ; pop eax # 31 ?' # d2 ?' ; xor edx, edx # f7 ?' # f3 ?' ; div ebx - # 52 ?' ; push edx + # 50 ?' ; push eax next -defasm div +defasm mod # 5b ?' ; pop ebx # 58 ?' ; pop eax # 31 ?' # d2 ?' ; xor edx, edx # f7 ?' # f3 ?' ; div ebx - # 50 ?' ; push eax + # 52 ?' ; push edx next defasm = -- cgit v1.2.3