summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/alu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/alu.c b/lib/alu.c
index bde852d..af4b9eb 100644
--- a/lib/alu.c
+++ b/lib/alu.c
@@ -429,8 +429,8 @@ Uint32 MUL_UU(Uint32 a, Uint32 b) {
SetOverflow();
else
ResetOverflow();
- SecondResult=u;
- return (v);
+ SecondResult=v;
+ return (u);
}
Uint32 MUL_SS(Uint32 a, Uint32 b) {
@@ -472,8 +472,8 @@ Uint32 MUL_SS(Uint32 a, Uint32 b) {
else
ResetOverflow();
}
- SecondResult=RegistreRD;
- return (RegistreRG);
+ SecondResult=RegistreRG;
+ return (RegistreRD);
}
Uint32 DivMod_UU(Uint32 a, Uint32 b) {
@@ -512,8 +512,8 @@ Uint32 DivMod_SS(Uint32 a, Uint32 b) {
RegistreRD = SecondResult;
RegistreRD = OPP(RegistreRD);
}
- SecondResult = RegistreRD;
- return (RegistreRG);
+ SecondResult = RegistreRG;
+ return (RegistreRD);
}