Skip to content

Commit

Permalink
Validating Zeroes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pebaz committed Nov 3, 2021
1 parent 5d1f492 commit 0c9468f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ impl OpCode
bytes.next(); // Skip this and the next zero
Ok(())
}
else if *byte > 6 // 1-6 are valid break codes
{
Ok(()) // Only skip this zero
}
else
{
// 2. INSTRUCTION ARGUMENT (BREAK)
Expand Down

0 comments on commit 0c9468f

Please sign in to comment.