lets try clippy

This commit is contained in:
2024-10-30 09:45:18 -04:00
parent dfce9bf9fe
commit 4fb2d6af29
10 changed files with 491 additions and 362 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ use std::path::Path;
use clap::{command, Parser};
use gemma::chip8::instructions::Chip8CpuInstructions;
use gemma::chip8::instructions::Chip8CpuInstructions::XXXXERRORINSTRUCTION;
use gemma::chip8::quirk_modes::QuirkMode::Chip8;
/// ch8disasm
///
@@ -26,7 +27,7 @@ impl Disassembler {
for (offset, byte) in from_data.iter().enumerate() {
working_instruction = (working_instruction << 8) | (*byte as u16);
if offset % 2 != 0 {
let decoded = Chip8CpuInstructions::decode(working_instruction);
let decoded = Chip8CpuInstructions::decode(working_instruction, &Chip8);
let decoded_string = decoded.to_string();
let mut current_parts = String::new();