From 1c1bc6116d6f5d1c298de64523f50718b41ae8e5 Mon Sep 17 00:00:00 2001 From: thealmarty <“thealmartyblog@gmail.com”> Date: Fri, 12 Apr 2024 11:50:10 -0700 Subject: [PATCH] Remove write_u8. --- memory/src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/memory/src/lib.rs b/memory/src/lib.rs index 452daeb..0c9725a 100644 --- a/memory/src/lib.rs +++ b/memory/src/lib.rs @@ -110,18 +110,6 @@ impl MemoryChip { self.cells.insert(address, value.into()); } - /// Write a byte value to the least significant byte, and write zeros to the other 3 bytes. - pub fn write_u8(&mut self, clk: u32, address: u32, value: u8, log: bool) { - let value_word = Word::from_u8(value); - if log { - self.operations - .entry(clk) - .or_insert_with(Vec::new) - .push(Operation::Write(address, value_word)); - } - self.cells.insert(address, value_word); - } - pub fn write_static(&mut self, address: u32, value: Word) { self.cells.insert(address, value.clone()); self.static_data.insert(address, value);