Improved Windows ABI support

This commit is contained in:
Eduard Urbach 2025-02-15 18:23:33 +01:00
parent 91a3ec9d52
commit b3fec98baf
Signed by: eduard
GPG key ID: 49226B848C78F6C8
22 changed files with 124 additions and 32 deletions

View file

@ -8,7 +8,6 @@ import (
)
func TestX86(t *testing.T) {
assert.DeepEqual(t, x86.AlignStack(nil), []byte{0x48, 0x83, 0xE4, 0xF0})
assert.DeepEqual(t, x86.Call(nil, 1), []byte{0xE8, 0x01, 0x00, 0x00, 0x00})
assert.DeepEqual(t, x86.CallAtAddress(nil, 1), []byte{0xFF, 0x15, 0x01, 0x00, 0x00, 0x00})
assert.DeepEqual(t, x86.ExtendRAXToRDX(nil), []byte{0x48, 0x99})