Refactored arm package

This commit is contained in:
2025-04-16 17:38:48 +02:00
parent 53ecf40229
commit df725a2b23
26 changed files with 102 additions and 53 deletions

View File

@ -7,8 +7,7 @@ import (
"git.urbach.dev/go/assert"
)
func TestGeneral(t *testing.T) {
assert.DeepEqual(t, arm.Call(0), 0x94000000)
func TestConstants(t *testing.T) {
assert.DeepEqual(t, arm.Nop(), 0xD503201F)
assert.DeepEqual(t, arm.Return(), 0xD65F03C0)
assert.DeepEqual(t, arm.Syscall(), 0xD4000001)