From 003e2043c9884f6db0b9b2ae56807399fe03523c Mon Sep 17 00:00:00 2001 From: Brooke Chalmers Date: Wed, 22 Nov 2023 13:15:24 -0500 Subject: [PATCH] code cleanup --- src/cpu/execute.rs | 4 ---- src/systems/aiie/keyboard.rs | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cpu/execute.rs b/src/cpu/execute.rs index 1409f04..0d5044e 100644 --- a/src/cpu/execute.rs +++ b/src/cpu/execute.rs @@ -9,10 +9,6 @@ pub trait Execute { impl Execute for Mos6502 { fn execute(&mut self, opcode: u8) -> Result { - if self.registers.a == 13{ - println!("Return"); - } - println!("{:04X} {:02X}",self.registers.pc.address()-1, opcode); match opcode { // === LOAD === 0xA1 | 0xA5 | 0xA9 | 0xAD | 0xB1 | 0xB5 | 0xB9 | 0xBD => { diff --git a/src/systems/aiie/keyboard.rs b/src/systems/aiie/keyboard.rs index ac0ffdb..ecc5f6f 100644 --- a/src/systems/aiie/keyboard.rs +++ b/src/systems/aiie/keyboard.rs @@ -1,7 +1,7 @@ use crate::keyboard::{KeyAdapter, KeyState, KeySymbol}; pub struct AppleIISymbolAdapter; -static mut DEBUG_START: bool = false; + impl KeyAdapter for AppleIISymbolAdapter { fn map(state: &KeyState) -> KeyState { let mut mapped = KeyState::new(); @@ -11,8 +11,7 @@ impl KeyAdapter for AppleIISymbolAdapter { let mapped_symbol = match symbol { &Char(c) => Some(c as u8), - Return => { - Some(0x0D)}, // Carriage Return + Return => Some(0x0D), // Carriage Return Backspace => Some(0x08), Escape => Some(0x1B), _ => None,