fix up misc ops
set the flag register when overwriting pixels