editor works

This commit is contained in:
2025-06-15 21:21:02 +01:00
parent 5d1ea86cdd
commit 277f210b3e
8 changed files with 641 additions and 80 deletions
+6 -6
View File
@@ -1,13 +1,10 @@
use std::{
sync::{Arc, Mutex},
thread,
};
use std::thread;
use dsa_rs::emulator::{
system::{emulator::run_emulator, memory::MainStore, processor::Processor},
ui::{
control_unit::ControlPanel, interface::EmulatorUI, memory_inspector::MemoryInspector,
stack_inspector::StackInspector,
control_unit::ControlPanel, editor::Editor, interface::EmulatorUI,
memory_inspector::MemoryInspector, stack_inspector::StackInspector,
},
};
@@ -36,6 +33,9 @@ fn main() -> Result<(), eframe::Error> {
let stack_inspector = StackInspector::new();
ui.add_component(Box::new(stack_inspector));
let editor = Editor::new(cmd_sender.clone());
ui.add_component(Box::new(editor));
// Run UI
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default().with_inner_size([800.0, 600.0]),