only invert 2's complement if sign is negative.

I'm sure that there is a formula to avoid the conditional, but this works for now.
load a indirectly from c + 0xff00
update gpu's mode clock only if the display is on