From d6c404a035f1c3eff850c553140a78e4878aebc2 Mon Sep 17 00:00:00 2001 From: Griffin Berlstein Date: Mon, 11 Nov 2024 13:55:26 -0500 Subject: [PATCH] another note --- tools/cider-data-converter/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cider-data-converter/src/main.rs b/tools/cider-data-converter/src/main.rs index fdb0248c6..e44fea9cb 100644 --- a/tools/cider-data-converter/src/main.rs +++ b/tools/cider-data-converter/src/main.rs @@ -151,6 +151,7 @@ fn main() -> Result<(), CiderDataConverterError> { for line in mem_file.lines() { let line = line?; for pair in &line.chars().chunks(2) { + // there has got to be a better way to do this... let string = pair.into_iter().collect::(); let val = u8::from_str_radix(&string, 16) @@ -227,7 +228,7 @@ fn main() -> Result<(), CiderDataConverterError> { for bytes in data .get_data(&memory.name) .unwrap() - .chunks_exact(memory.width().div_ceil(8) as usize) + .chunks_exact(memory.bytes_per_entry() as usize) { // data file seems to expect lsb on the right // for the moment electing to print out every byte