Renamed x64 to x86

This commit is contained in:
2025-02-05 23:16:18 +01:00
parent 37afbde0da
commit d4f9071ee4
80 changed files with 1757 additions and 1757 deletions

View File

@ -6,7 +6,7 @@ import (
"git.akyoto.dev/cli/q/src/errors"
"git.akyoto.dev/cli/q/src/expression"
"git.akyoto.dev/cli/q/src/types"
"git.akyoto.dev/cli/q/src/x64"
"git.akyoto.dev/cli/q/src/x86"
)
// CompileCall executes a function call.
@ -50,7 +50,7 @@ func (f *Function) CompileCall(root *expression.Expression) (*Function, error) {
if pkg == "kernel32" || pkg == "user32" || pkg == "gdi32" || pkg == "comctl32" {
parameters := root.Children[1:]
registers := x64.WindowsInputRegisters[:len(parameters)]
registers := x86.WindowsInputRegisters[:len(parameters)]
for i := len(parameters) - 1; i >= 0; i-- {
_, err := f.ExpressionToRegister(parameters[i], registers[i])