fengb / fundude

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

Reenable disassembler #43

Closed fengb closed 4 years ago

fengb commented 4 years ago

Now that we have a separate decoder, the disassembler should be much easier.

fengb commented 4 years ago

Core functionality is now done. Still debating on how to communicate into JS.

Input:

Output:

I think we need to make a concession on the output format. Since we need to return both a "slice" and an instruction length, there's not a nice way of squeezing both into a u64.

fengb commented 4 years ago

Mostly complete by 97ceb70deeafb276bc9edad67a82541c024c8ec3. We still need to reenable CB operations.

fengb commented 4 years ago

Also... @tagName(Op.Id) increases the bundle size by ~15 KB (4 KB gzipped) due to extra string literals + dispatch table. Sad panda.