The emulator works by applying 68000
instructions that match closest to the 6502 ones. The flags are
stored in a data register that is updated by indexing the value from a look up table. The A,X,Y registers are implemented in data registers and the PC,SP are implemented in the address registers.