Added CPU type
This commit is contained in:
parent
890f782af8
commit
8c74b4b05f
10 changed files with 92 additions and 28 deletions
|
@ -6,6 +6,8 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build/arch/x64"
|
||||
"git.akyoto.dev/cli/q/src/build/cpu"
|
||||
"git.akyoto.dev/cli/q/src/build/fs"
|
||||
"git.akyoto.dev/cli/q/src/build/token"
|
||||
"git.akyoto.dev/cli/q/src/errors"
|
||||
|
@ -225,6 +227,11 @@ func scanFile(path string, functions chan<- *Function) error {
|
|||
Head: tokens[paramsStart:bodyStart],
|
||||
Body: tokens[bodyStart : i+1],
|
||||
Variables: map[string]*Variable{},
|
||||
CPU: cpu.CPU{
|
||||
General: x64.GeneralRegisters,
|
||||
Syscall: x64.SyscallRegisters,
|
||||
Return: x64.ReturnValueRegisters,
|
||||
},
|
||||
}
|
||||
|
||||
nameStart = -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue