Added CPU type

This commit is contained in:
Eduard Urbach 2024-06-21 22:16:42 +02:00
parent 890f782af8
commit 8c74b4b05f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
10 changed files with 92 additions and 28 deletions

View file

@ -1,13 +1,5 @@
package x64
import "git.akyoto.dev/cli/q/src/build/cpu"
const (
SyscallReturn = 0 // rax
)
var SyscallArgs = []cpu.Register{0, 7, 6, 2, 10, 8, 9}
// Syscall is the primary way to communicate with the OS kernel.
func Syscall(code []byte) []byte {
return append(code, 0x0f, 0x05)