commit 62fe7ccb10e71b355420d3fced24ad4d88998dc7 from: Witcher01 date: Sun Aug 1 17:58:29 2021 UTC fixed instruction matching bug commit - 6a1ef6ce40bd2354eac59bd4cf402267f8f0add9 commit + 62fe7ccb10e71b355420d3fced24ad4d88998dc7 blob - 5480c388fcc91b147019db698cfee3d85c210393 blob + 5d06393b27541e3e57212e9d545981d5932699c5 --- 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 => {