lets try clippy
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user