Added fibonacci example

This commit is contained in:
Eduard Urbach 2024-07-09 10:28:14 +02:00
parent cbbceedc4d
commit c2b763ab67
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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,