diff options
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-x | pp2cc.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -551,6 +551,8 @@ class Parse(object): lines.append(self.asm.binary_op("CMP", reg_first, 0)) # if it's positive, skip handling for negative values lines.append(self.asm.branch_op("BPL", lbl_make_positive)) + # -1 / 2 = 0, so make sure that the last bit is zero + lines.append(self.asm.binary_op("AND", reg_first, "%10")) # shift it by one lines.append(self.asm.binary_op("DIV", reg_first, 1)) # make it positive if not already |