More tightening

This commit is contained in:
Reid 'arrdem' McKenzie 2022-12-23 00:06:07 -07:00
parent b7df86ce2a
commit 09bb1854bf

View file

@ -191,17 +191,10 @@ impl Uxn {
// BRK // BRK
break 'run; break 'run;
} }
(_, _, 0, 0x00) => { (_, _, _, 0x00) => {
// LIT1 // LIT
wst.borrow_mut().push1(self.lda1(self.pc)?)?; push(wst.clone(), load(self.pc)?)?;
self.pc += 1; self.pc += if sflag == 1 { 2 } else { 1 };
continue 'run;
}
(_, _, 1, 0x00) => {
// LIT2
wst.borrow_mut().push2(self.lda2(self.pc)?)?;
self.pc += 2;
continue 'run;
} }
(_, _, _, 0x01) => { (_, _, _, 0x01) => {
// INC // INC