Skip to content

Commit

Permalink
another note
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Nov 11, 2024
1 parent 017140f commit d6c404a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/cider-data-converter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<String>();
let val = u8::from_str_radix(&string, 16)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6c404a

Please sign in to comment.