Added fibonacci example

This commit is contained in:
2024-07-09 10:28:14 +02:00
parent 1c019297d2
commit 5cbc3315a7
11 changed files with 107 additions and 16 deletions

View File

@ -31,6 +31,7 @@ func NewFunction(name string, file *fs.File, body token.List) *Function {
Instructions: make([]asm.Instruction, 0, 32),
},
cpu: cpu.CPU{
All: x64.AllRegisters,
Input: x64.CallRegisters,
General: x64.GeneralRegisters,
Syscall: x64.SyscallRegisters,