Better structure

This commit is contained in:
2025-10-28 20:51:19 +01:00
parent b42aeaacab
commit b1b0a78aad
4 changed files with 33 additions and 26 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use std::sync::Arc;
use osui::prelude::*;
use crate::emulator::{Instruction, Registry};
use crate::emulator::{instruction::Instruction, registry::Registry};
fn main() {
let screen = Screen::new();
@@ -21,7 +21,7 @@ fn main() {
screen.run().unwrap();
}
fn app(_screen: &Arc<Screen>, instructions: Vec<emulator::Instruction>) -> Rsx {
fn app(_screen: &Arc<Screen>, instructions: Vec<Instruction>) -> Rsx {
let pc = use_state::<usize>(0);
let inst = use_state::<Instruction>(Instruction::HLT);
let registers = Registry(use_state([0; 8]));