diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/alu.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); } |