Fixed incorrect number of history entries

This commit is contained in:
2025-02-12 15:00:19 +01:00
parent c10395eddc
commit be384c5136
9 changed files with 39 additions and 20 deletions

View File

@ -27,7 +27,6 @@ func (f *Machine) RegisterNumber(mnemonic asm.Mnemonic, a cpu.Register, b int) {
f.Assembler.RegisterNumber(asm.MOVE, tmp, b)
f.UseRegister(tmp)
f.postInstruction()
f.Assembler.RegisterRegister(mnemonic, a, tmp)
f.postInstruction()
f.RegisterRegister(mnemonic, a, tmp)
f.FreeRegister(tmp)
}