Skip to content

Commit

Permalink
fix: added missing 0x2NNN (Call)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoof committed Oct 5, 2023
1 parent f64bada commit 988e7c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ impl Operation {
let address = nnn(opcode);
Some(Jump { address })
}
0x2000 => Some(Call {
address: nnn(opcode),
}),
0x3000 => {
let (x, value) = xnn(opcode);
Some(SkipEqLiteral { x, value })
Expand Down Expand Up @@ -187,7 +190,7 @@ impl Operation {
0x8000 => {
let (lhs, rhs, op) = xyn(opcode);
match op {
0 => Some(Set {
0x0 => Some(Set {
dest: lhs,
src: rhs,
}),
Expand Down

0 comments on commit 988e7c5

Please sign in to comment.