diff options
| author | Samuel Perrouault <samuel.perrouault@gmail.com> | 2025-03-26 22:32:30 +0100 |
|---|---|---|
| committer | Samuel Perrouault <samuel.perrouault@gmail.com> | 2025-03-26 22:32:30 +0100 |
| commit | 648e93f3e2712d1b1d8e778cb8be091363f70065 (patch) | |
| tree | 8f823335b14fdd5c64988fdb65d9b50d95990914 /src | |
| parent | 51133f663c77ba04d3a82fa641b5c1ee7c3b4062 (diff) | |
implement LD Vx, DT
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -224,6 +224,10 @@ impl Chip8 { _ => unknown_opcode(opcode), }, 0xF000 => match opcode & 0x00FF { + 0x0007 => { + eprintln!("LD V{}, DT", x); + self.v[x] = self.delay_timer; + } 0x0015 => { eprintln!("LD DT, V{}", x); self.delay_timer = self.v[x]; |
