v0.1.1 Partial Super Chip Support #11

Merged
j merged 12 commits from schip into main 2023-04-15 04:00:41 +00:00
Showing only changes of commit d12f3fe710 - Show all commits

View File

@ -756,11 +756,11 @@ impl CPU {
Insn::ret => self.ret(bus), Insn::ret => self.ret(bus),
Insn::jmp { A } => self.jump(A), Insn::jmp { A } => self.jump(A),
Insn::call { A } => self.call(A, bus), Insn::call { A } => self.call(A, bus),
Insn::seb { B, x } => self.skip_equals_immediate(x, B), Insn::seb { x, B } => self.skip_equals_immediate(x, B),
Insn::sneb { B, x } => self.skip_not_equals_immediate(x, B), Insn::sneb { x, B } => self.skip_not_equals_immediate(x, B),
Insn::se { y, x } => self.skip_equals(x, y), Insn::se { y, x } => self.skip_equals(x, y),
Insn::movb { B, x } => self.load_immediate(x, B), Insn::movb { x, B } => self.load_immediate(x, B),
Insn::addb { B, x } => self.add_immediate(x, B), Insn::addb { x, B } => self.add_immediate(x, B),
Insn::mov { y, x } => self.load(x, y), Insn::mov { y, x } => self.load(x, y),
Insn::or { y, x } => self.or(x, y), Insn::or { y, x } => self.or(x, y),
Insn::and { y, x } => self.and(x, y), Insn::and { y, x } => self.and(x, y),
@ -773,7 +773,7 @@ impl CPU {
Insn::sne { y, x } => self.skip_not_equals(x, y), Insn::sne { y, x } => self.skip_not_equals(x, y),
Insn::movI { A } => self.load_i_immediate(A), Insn::movI { A } => self.load_i_immediate(A),
Insn::jmpr { A } => self.jump_indexed(A), Insn::jmpr { A } => self.jump_indexed(A),
Insn::rand { B, x } => self.rand(x, B), Insn::rand { x, B } => self.rand(x, B),
Insn::draw { y, x, n } => self.draw(x, y, n, bus), Insn::draw { y, x, n } => self.draw(x, y, n, bus),
Insn::sek { x } => self.skip_key_equals(x), Insn::sek { x } => self.skip_key_equals(x),
Insn::snek { x } => self.skip_key_not_equals(x), Insn::snek { x } => self.skip_key_not_equals(x),