Improved assembler

This commit is contained in:
2024-06-26 14:14:11 +02:00
parent e23c1ece80
commit 68ec1467ef
7 changed files with 85 additions and 46 deletions

View File

@ -155,7 +155,7 @@ func (f *Function) ExpressionToRegister(root *expression.Expression, register cp
return nil
} else {
temporary, _ := f.CPU.FindFree()
temporary, _ := f.CPU.FindFree(f.CPU.General)
f.CPU.Use(temporary)
f.ExpressionToRegister(right, temporary)
f.CPU.Free(temporary)