Fixed incorrect number of history entries

This commit is contained in:
Eduard Urbach 2025-02-12 15:00:19 +01:00
parent 77d354936c
commit 5f8b859f4a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 39 additions and 20 deletions

View file

@ -7,5 +7,10 @@ import (
func (f *Machine) MemoryRegister(mnemonic asm.Mnemonic, a asm.Memory, b cpu.Register) {
f.Assembler.MemoryRegister(mnemonic, a, b)
if mnemonic == asm.LOAD {
f.UseRegister(b)
}
f.postInstruction()
}