This commit is contained in:
parent
31c5ed614c
commit
bac5986425
61 changed files with 2745 additions and 0 deletions
8
src/x86/Load.go
Normal file
8
src/x86/Load.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package x86
|
||||
|
||||
import "git.urbach.dev/cli/q/src/cpu"
|
||||
|
||||
// LoadRegister loads from memory into a register.
|
||||
func LoadRegister(code []byte, destination cpu.Register, base cpu.Register, offset int8, length byte) []byte {
|
||||
return memAccess(code, 0x8A, 0x8B, destination, base, offset, length)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue