Fixed a bug on CMP instruction, possibly affecting other instructions too. Repeat with me, 0xFF = -1, so always do val = val & 0xFF to remove that problem...