mirror of
https://github.com/danbulant/chip8
synced 2026-07-06 11:40:35 +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;
|
return;
|
||||||
} else if first == 2 {
|
} else if first == 2 {
|
||||||
// call
|
// call
|
||||||
debug_eprintln!("CALL {}", after_first);
|
debug_eprintln!("CALL {after_first} {after_first:#02x}");
|
||||||
self.stack.push(self.pc);
|
self.stack.push(self.pc);
|
||||||
self.pc = after_first;
|
self.pc = after_first;
|
||||||
|
return;
|
||||||
} else if first == 3 {
|
} else if first == 3 {
|
||||||
// if eq
|
// if eq
|
||||||
debug_eprintln!("SE IF V{second} == {} SKIP", last_two);
|
debug_eprintln!("SE IF V{second} == {} SKIP", last_two);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue