Commit Diff
--- src/chip8.rs +++ src/chip8.rs @@ -50,6 +50,15 @@ impl Chip8 { 0x00E0 => { self.video_driver.clear(); }, + // RET + 0x00EE => { + self.pc = match self.stack.pop() { + Some(s) => s, + None => { + return Err(format!("pop from empty stack")); + } + }; + }, _ => { return Err(format!("{:#06x}: not an instruction", instruction)); }
