Minor optimizations

Commits are rather self-explanatory. Also, please, never, EVER do mov reg, 0. ALWAYS do xor reg, reg.