chore(gui): implement basic disassembler

Also implement CPU and Interrupt debug information.

Of note:
1. IE and IRQ status boxes are slightly misaligned
2. Whenever the disassembler accidentally reads into game data rather
   than executable code the emulator crashes
   * Thus I should turn Instruction decoding into a Result<> rather than
     panic on failure
This commit is contained in:
2021-11-30 10:23:06 -04:00
parent 4a1a21a08f
commit 90d2da9272
4 changed files with 262 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ fn main() {
// Begin to draw Egui components
platform.begin_frame();
gui::draw_egui(&mut app, &platform.context(), texture_id);
gui::draw_egui(&cpu, &mut app, &platform.context(), texture_id);
// End the UI frame. We could now handle the output and draw the UI with the backend.
let (_, paint_commands) = platform.end_frame(Some(&window));
let paint_jobs = platform.context().tessellate(paint_commands);