Use tables for integer register, and load instructions. Table mappings are cleaner and easier to test.