Numerous fixes to opcode building

I've now got a test file with almost all possible z80 instructions in it
which will allow me to check them for correctness. With this commit,
numerous bugs have been fixed that prevented assembly completing, but
note that many, many resultant opcodes are incorrect. I will go through
and fix these up next.