Add magic breakpoint instruction
This commit is contained in:
		| @@ -822,6 +822,10 @@ impl CPU { | |||||||
|             Insn::Stop => self.stop(), |             Insn::Stop => self.stop(), | ||||||
|             Insn::Halt => self.halt(), |             Insn::Halt => self.halt(), | ||||||
|  |  | ||||||
|  |             Insn::Ld(R8::B, R8::B) => { | ||||||
|  |                 let _ = self.ld(R8::B, R8::B, bus); | ||||||
|  |                 Err(Error { kind: HitBreak(self.pc(), self.m_cycles + 1) }) | ||||||
|  |             } | ||||||
|             Insn::Ld(dst, src) => self.ld(dst, src, bus), |             Insn::Ld(dst, src) => self.ld(dst, src, bus), | ||||||
|             Insn::LdImm(dst) => self.ld_imm(dst, bus), |             Insn::LdImm(dst) => self.ld_imm(dst, bus), | ||||||
|             Insn::LdImm16(dst) => self.ld_imm16(dst, bus), |             Insn::LdImm16(dst) => self.ld_imm16(dst, bus), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user