Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
breqdev committed Nov 22, 2023
1 parent 2a594ce commit 003e204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/cpu/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ pub trait Execute {

impl Execute for Mos6502 {
fn execute(&mut self, opcode: u8) -> Result<u8, ()> {
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 => {
Expand Down
5 changes: 2 additions & 3 deletions src/systems/aiie/keyboard.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::keyboard::{KeyAdapter, KeyState, KeySymbol};

pub struct AppleIISymbolAdapter;
static mut DEBUG_START: bool = false;

impl KeyAdapter<KeySymbol, u8> for AppleIISymbolAdapter {
fn map(state: &KeyState<KeySymbol>) -> KeyState<u8> {
let mut mapped = KeyState::new();

Check warning on line 7 in src/systems/aiie/keyboard.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/keyboard.rs#L6-L7

Added lines #L6 - L7 were not covered by tests
Expand All @@ -11,8 +11,7 @@ impl KeyAdapter<KeySymbol, u8> 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,

Check warning on line 17 in src/systems/aiie/keyboard.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/keyboard.rs#L12-L17

Added lines #L12 - L17 were not covered by tests
Expand Down

0 comments on commit 003e204

Please sign in to comment.