Added more tests

This commit is contained in:
Eduard Urbach 2025-02-08 00:40:41 +01:00
parent 05688e9e79
commit c6ef9013a8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
3 changed files with 57 additions and 5 deletions

View file

@ -7,7 +7,7 @@ import (
"git.akyoto.dev/go/assert"
)
func TestX64(t *testing.T) {
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})