Finish basic opcodes

also change hex literals to lowercase
and add macros for register indices