This commit is contained in:
5225225 2020-06-06 17:40:42 +01:00
parent ebfe2a0f97
commit 1af0d77575
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -379,6 +379,7 @@ fn parse_instruction(mut bytes: &[u16]) -> (Instruction, usize) {
consumed += 1;
println!("{:016b}", aw);
aw >>= 4;
for i in 0..register_count {
registers.insert(0_usize, Register::into_register(aw & 0b1111));
aw >>= 4;
@ -452,6 +453,7 @@ impl Machine {
OP::CALL => {
if self.RTRGT == 0 {
} else {
unimplemented!("calling not implemented");
}
}
@ -515,7 +517,7 @@ fn main() {
m.SIN[1..=sin.inner().len()].copy_from_slice(sin.inner());
m.SCODE[1..=code.inner().len()].copy_from_slice(code.inner());
// dump_instructions(&m.SCODE[1..]);
// dump_instructions(&m.SCODE[1..=code.inner().len()]);
while m.step() {}
}