Implemented length storage of allocated memory
This commit is contained in:
@ -26,4 +26,5 @@ func (f *Machine) SaveRegister(register cpu.Register) {
|
||||
newRegister := f.NewRegister()
|
||||
f.RegisterRegister(asm.MOVE, newRegister, register)
|
||||
variable.Register = newRegister
|
||||
f.FreeRegister(register)
|
||||
}
|
||||
|
Reference in New Issue
Block a user