More tightening
This commit is contained in:
parent
b7df86ce2a
commit
09bb1854bf
1 changed files with 4 additions and 11 deletions
15
src/vm.rs
15
src/vm.rs
|
@ -191,17 +191,10 @@ impl Uxn {
|
|||
// BRK
|
||||
break 'run;
|
||||
}
|
||||
(_, _, 0, 0x00) => {
|
||||
// LIT1
|
||||
wst.borrow_mut().push1(self.lda1(self.pc)?)?;
|
||||
self.pc += 1;
|
||||
continue 'run;
|
||||
}
|
||||
(_, _, 1, 0x00) => {
|
||||
// LIT2
|
||||
wst.borrow_mut().push2(self.lda2(self.pc)?)?;
|
||||
self.pc += 2;
|
||||
continue 'run;
|
||||
(_, _, _, 0x00) => {
|
||||
// LIT
|
||||
push(wst.clone(), load(self.pc)?)?;
|
||||
self.pc += if sflag == 1 { 2 } else { 1 };
|
||||
}
|
||||
(_, _, _, 0x01) => {
|
||||
// INC
|
||||
|
|
Loading…
Reference in a new issue