NTmatter/LLBoy — Issue #3: Consider using dispatch tables for memory reading and writing
Author: grantgalitz
Created: 2011-12-30 21:28:14+00:00
State: open

Essentially you can make a table that holds pointers to handling sub-routines for addresses being requested. The GameBoy/GameBoy Color memory map is only 16-bit (albeit with ROM and RAM banking), so it can easily be mapped. This is faster than if/else'ing like a mad-man for address decoding.