start of rom_only PC

This commit is contained in:
2025-07-07 07:36:41 -04:00
parent b9242b1943
commit 9c672741ed
23 changed files with 349 additions and 114 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ version = "0.1.0"
edition = "2024"
[dependencies]
macroquad.workspace = true
macroquad.workspace = true
core = { path = "../core" }
+31
View File
@@ -0,0 +1,31 @@
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
}
}