mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-15 05:45:02 +01:00
add opt that doesn't make anything faster but might allow better opts later
This commit is contained in:
parent
6575e09957
commit
c3c24c73fe
7 changed files with 59 additions and 24 deletions
|
|
@ -87,6 +87,9 @@ where
|
|||
Stmt::SetNull => {
|
||||
*self.elem_mut() = Wrapping(0);
|
||||
}
|
||||
Stmt::SetN(n) => {
|
||||
*self.elem_mut() = Wrapping(n);
|
||||
}
|
||||
Stmt::JmpIfZero(pos) => {
|
||||
if self.elem() == 0 {
|
||||
self.ip = pos as usize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue