File "/home/tsf/sandbox/local/lib/python3.6/site-packages/ppci/arch/token.py", line 27, in u8
return struct.pack("<B", x)
struct.error: ubyte format requires 0 <= number <= 255
This generates an instruction "mov bl,-1" and the assembler does not accept negative value for immediate8.
Note: the problem does not occur if "sym" is of type "int" (or "short")
I have got a fix (in arch/token.py°). I'll make a pull request this week.
File "/home/tsf/sandbox/local/lib/python3.6/site-packages/ppci/arch/token.py", line 27, in u8 return struct.pack("<B", x) struct.error: ubyte format requires 0 <= number <= 255
This generates an instruction "mov bl,-1" and the assembler does not accept negative value for immediate8. Note: the problem does not occur if "sym" is of type "int" (or "short")
I have got a fix (in arch/token.py°). I'll make a pull request this week.