writes bins better now

This commit is contained in:
2025-07-07 16:28:13 -04:00
parent 9c672741ed
commit 8c08555003
29 changed files with 1381 additions and 108 deletions
+2 -1
View File
@@ -5,4 +5,5 @@ edition = "2024"
[dependencies]
macroquad.workspace = true
core = { path = "../core" }
core = { path = "../core" }
egui-macroquad = "0.17"
-31
View File
@@ -1,31 +0,0 @@
use macroquad::prelude::*;
use core::computers::rom_only::backplane::Backplane;
pub struct UiState {
display_offset: u16,
current_offset: u16
}
#[macroquad::main("Rom_Only")]
async fn main() {
let mut backplane = Backplane::new();
let mut state = UiState { display_offset: 0x00, current_offset: 0x00 };
loop {
clear_background(BLUE);
draw_text("ROM ONLY", 20.0, 20.0, 30.0, DARKGRAY);
backplane.tick();
draw_text(
format!("Display Offset: 0x{:04x}", state.display_offset).as_str(), 20.0, 60.0, 30.0, DARKGRAY
);
draw_text(
format!("Current Offset: 0x{:04x}", state.current_offset).as_str(), 20.0, 100.0, 30.0, DARKGRAY
);
next_frame().await
}
}