Commit Diff
--- src/chip8.rs +++ src/chip8.rs @@ -50,7 +50,7 @@ impl Chip8 { let x = ((instruction & 0x0F00) >> 8) as usize; let y = ((instruction & 0x00F0) >> 4) as usize; - match instruction & 0xF000 { + match (instruction & 0xF000) >> 12 { 0x0 => match nnn { // CLS 0x0E0 => {
