Simplified x86 encoder

This commit is contained in:
Eduard Urbach 2025-03-09 23:27:40 +01:00
parent 792d0eb74d
commit 377b66663f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
10 changed files with 39 additions and 76 deletions

View file

@ -4,5 +4,5 @@ import "git.urbach.dev/cli/q/src/cpu"
// LoadDynamicRegister loads from memory with a register offset into a register.
func LoadDynamicRegister(code []byte, destination cpu.Register, base cpu.Register, offset cpu.Register, length byte) []byte {
return memoryAccessDynamic(code, 0x8A, 0x8B, base, offset, length, destination)
return memoryAccessDynamic(code, 0x8A, 0x8B, destination, base, offset, length)
}