diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -208,6 +208,21 @@ impl Chip8 { } self.draw = true; } + 0xE000 => match opcode & 0x00FF { + 0x009E => { + eprintln!("SKP V{}", x); + if self.key[self.v[x] as usize] == 1 { + self.pc += 2; + } + } + 0x00A1 => { + eprintln!("SKNP V{}", x); + if self.key[self.v[x] as usize] == 0 { + self.pc += 2; + } + } + _ => unknown_opcode(opcode), + }, 0xF000 => match opcode & 0x00FF { 0x0015 => { eprintln!("LD DT, V{}", x); |
