Max Regan 5bbc6097b5 cpu: fix up register accesses
The HL dereference operations cause problems indexing into the
registers array, because it causes a hole in the array that only
exists in the 8-bit register space.

Instead of accessing the registers directly by the same indices used
in in the assembly instructions, create a lookup table to map between
them.

Signed-off-by: Max Regan <mgregan2@gmail.com>
2017-05-10 22:40:12 -07:00
2017-05-10 22:40:12 -07:00
2017-05-10 22:40:12 -07:00
2017-05-10 22:40:12 -07:00

A work-in-progress Gameboy emulator with a terminal-based UI and a basic assembler.

== Compilation ==

make config-default
make
Description
No description provided
Readme 444 KiB
Languages
C 98.2%
Makefile 1.8%