mirror of
https://github.com/danbulant/chip8
synced 2026-06-19 14:41:12 +00:00
fix call
This commit is contained in:
parent
b74f980d2a
commit
3a3e394f09
1 changed files with 2 additions and 1 deletions
|
|
@ -139,9 +139,10 @@ impl Chip8 {
|
|||
return;
|
||||
} else if first == 2 {
|
||||
// call
|
||||
debug_eprintln!("CALL {}", after_first);
|
||||
debug_eprintln!("CALL {after_first} {after_first:#02x}");
|
||||
self.stack.push(self.pc);
|
||||
self.pc = after_first;
|
||||
return;
|
||||
} else if first == 3 {
|
||||
// if eq
|
||||
debug_eprintln!("SE IF V{second} == {} SKIP", last_two);
|
||||
|
|
|
|||
Loading…
Reference in a new issue