fengb / fundude

Gameboy emulator: Zig -> wasm
https://fengb.github.io/fundude/
MIT License
181 stars 8 forks source link

CPU: cache cart instructions #12

Open fengb opened 5 years ago

fengb commented 5 years ago

Depends on https://github.com/fengb/fundude/issues/27

Current CPU implementation is basically:

An alternate approach would be:

This should eliminate a memory fetch thus hopefully speeding up execution.

Notes: