Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogepan229 committed Dec 19, 2024
1 parent 2ee7952 commit 34e3ae6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ mod testhelper;
const CPU_CLOCK: usize = 20_000_000;
pub const ADDRESS_MASK: u32 = 0x00ffffff;

// #[derive(Clone)]
#[cfg_attr(test, derive(Clone))]
pub struct Cpu {
#[cfg(not(test))]
Expand Down
12 changes: 0 additions & 12 deletions src/cpu/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,4 @@ impl Bus {
self.send_message(&str)?;
Ok(())
}

pub fn send_addr_value_u16(&mut self, addr: u32, value: u16) -> Result<()> {
let str = format!("u16:{:x}:{:x}", addr, value);
self.send_message(&str)?;
Ok(())
}

pub fn send_addr_value_u32(&mut self, addr: u32, value: u32) -> Result<()> {
let str = format!("u32:{:x}:{:x}", addr, value);
self.send_message(&str)?;
Ok(())
}
}

0 comments on commit 34e3ae6

Please sign in to comment.