Skip to content

Commit

Permalink
Fix a compiler trap 0 that is triggered when working with LONGINT DIV…
Browse files Browse the repository at this point in the history
… (thanks to Saferoll & luowy {at} SOHU.COM ).
  • Loading branch information
Oleg-N-Cher committed May 28, 2013
1 parent b4c0780 commit 8b39eb1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 0 deletions.
Binary file modified Dev/Code/CPC486.ocf
Binary file not shown.
Binary file modified Dev/Mod/CPC486.odc
Binary file not shown.
1 change: 1 addition & 0 deletions Dev/Mod/Text/CPC486.txt
Expand Up @@ -1144,6 +1144,7 @@ MODULE DevCPC486;
END
(* largeint support *)
| div:
IF y.mode # Reg THEN LoadR(y) END; (* <<< patch by luowy *)
IF rev THEN DevCPL486.GenFDOp(FDIVR, y) ELSE DevCPL486.GenFDOp(FDIV, y) END;
Floor(y, FALSE)
| mod:
Expand Down
Binary file added Dev/Test/LongintDIV.odc
Binary file not shown.

0 comments on commit 8b39eb1

Please sign in to comment.