Implement flags and finish up 8-bit registers