cpu: generate alu opcodes from instructions.json.

Rather than hard coding integers everywhere, generate some defines to
make it a little easier to read the code and add new instructions.