diff options
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-x | pp2cc.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1317,7 +1317,8 @@ class Parse(object): linked_node)) if op == "-": # negating a value in PP2 is flipping the WORDSIZE-th bit - value = operand ^ msb + value = -operand + #(operand ^ (pow(2, self.WORDSIZE) - 1)) + 1 elif op == "~": # invert all bits value = operand ^ (pow(2, self.WORDSIZE) - 1) |