added assembler skeleton code
This commit is contained in:
@@ -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"
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user