Skip to content

Commit

Permalink
improved signed division
Browse files Browse the repository at this point in the history
  • Loading branch information
dodobyte committed Sep 8, 2017
1 parent 8b79381 commit cc9de04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code.go
Expand Up @@ -98,8 +98,8 @@ func genDiv() {
genPop("ebx")
genPop("eax")
}
/* xor edx, edx */
out("bb", 0x31, 0xD2)
/* cdq */
out("b", 0x99)
/* idiv ebx */
out("bb", 0xF7, 0xFB)
if reg > 2 {
Expand Down

0 comments on commit cc9de04

Please sign in to comment.