some stuff?

This commit is contained in:
5225225 2020-06-06 22:47:39 +01:00
parent 28f035c725
commit e00b4f0b10
1 changed files with 2 additions and 1 deletions

View File

@ -547,6 +547,7 @@ impl Machine {
let mut val = self.read(ci.args[0]);
val = val.wrapping_add(1);
self.write(ci.args[0], val);
log::debug!("INC({:?}) to {}", ci.args[0], val);
self.RSTAT.set(Flags::FZERO, val == 0);
}
OP::READ => {
@ -682,7 +683,7 @@ fn main() {
let mut m = Machine::default();
m.SIN[1..=sin.inner().len()].copy_from_slice(sin.inner());
m.SCODE[1..=code.inner().len()].copy_from_slice(code.inner());
m.input = b"\x0a\xff\xff\xff\xff\xff\xff\xff".to_vec();
m.input = b"\x09\x0f\xcc\xcc\xcc\xcc\x0c\x0c\x00\x00\x00\x0a".to_vec();
// dump_instructions(&m.SCODE[1..=code.inner().len()]);