fix(interpreter): actually xchg into AX
This commit is contained in:
@@ -454,7 +454,7 @@ impl fmt::Display for Mnemonic {
|
||||
Self::TEST_AXIv(word) => write!(f, "test {}, {word:#04x}", Register::AX),
|
||||
|
||||
Self::XCHG(target, reg) => write!(f, "xchg {target}, {reg}"),
|
||||
Self::XCHG_AX(reg) => write!(f, "xchg, {reg}, {}", Register::AX),
|
||||
Self::XCHG_AX(reg) => write!(f, "xchg {reg}, {}", Register::AX),
|
||||
|
||||
Self::MOV_FromReg(target, reg) => write!(f, "mov {target}, {reg}"),
|
||||
Self::MOV_ToReg(target, reg) => write!(f, "mov {reg}, {target}"),
|
||||
|
||||
@@ -518,7 +518,7 @@ impl Interpreter {
|
||||
self.computer
|
||||
.regs
|
||||
.write(reg, self.computer.regs.ax.read().into());
|
||||
self.computer.regs.write(reg, tmp);
|
||||
self.computer.regs.ax.write(tmp.into());
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user