assembler still very broken, dependency resolution works, now working on expanding pseudoinstructions

This commit is contained in:
2025-06-17 03:11:22 +01:00
parent 88a1c9f245
commit 87fbd6c362
9 changed files with 604 additions and 292 deletions
+7 -2
View File
@@ -86,6 +86,9 @@ impl MemoryUnit for MainStore {
for i in 0..size {
data.push(self.read_byte(addr + i));
}
// println!("reading {data:?} from {addr:x?}");
data
}
@@ -105,8 +108,10 @@ impl MemoryUnit for MainStore {
}
fn write_range(&mut self, addr: u32, value: Vec<u8>) {
for byte in value {
let (block_addr, offset) = Self::segment_addr(addr);
// println!("writing {value:?} to {addr:x?}");
for (i, byte) in value.into_iter().enumerate() {
let (block_addr, offset) = Self::segment_addr(addr + i as u32);
let block = self.mut_block(block_addr);
block.data[offset as usize] = byte;
}
-1
View File
@@ -1,6 +1,5 @@
use std::{ffi::OsStr, path::PathBuf, sync::mpsc::Sender};
use assembler::lexer::Symbol;
use common::prelude::Instruction;
use egui::{Align, Context, Key, Layout, Ui};
use rfd::FileDialog;