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

@ -1,6 +1,13 @@
package register
func (f *Machine) Return() {
if f.Assembler.CanSkipReturn() {
return
}
f.Assembler.Return()
scope := f.CurrentScope()
scope.Reserved = 0
scope.Used = 0
f.postInstruction()
}