writes bins better now
This commit is contained in:
@@ -5,4 +5,5 @@ edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
macroquad.workspace = true
|
||||
core = { path = "../core" }
|
||||
core = { path = "../core" }
|
||||
egui-macroquad = "0.17"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user