added assembler skeleton code

This commit is contained in:
2025-06-15 21:53:57 +01:00
parent 2b8281157e
commit 2b5ad0885b
5 changed files with 24 additions and 10 deletions
+1
View File
@@ -9,6 +9,7 @@ path = "src/lib.rs"
[dependencies]
common = { path = "../common" }
assembler = { path = "../assembler" }
eframe = "0.31.1"
egui = "0.31.1"
rfd = "0.15.3"
+8
View File
@@ -279,6 +279,14 @@ impl Editor {
// builds the current file
if ui.button("Build").clicked() {
let instructions = assembler::assemble(&self.text);
// TODO: uncomment this once assembler works!!!
// self.output = instructions
// .iter()
// .flat_map(|i| i.encode().to_le_bytes().to_vec())
// .collect();
self.output = vec![0x00; 256];
}