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

@ -32,7 +32,7 @@ func (f *Function) CompileVariableDefinition(expr *expression.Expression) error
return err
}
reg, exists := f.CPU.FindFree()
reg, exists := f.CPU.FindFree(f.CPU.General)
if !exists {
panic("no free registers")