Implemented x64 memory loads
This commit is contained in:
parent
53379ff5bc
commit
5dee0777e7
5 changed files with 255 additions and 87 deletions
8
src/build/arch/x64/Load.go
Normal file
8
src/build/arch/x64/Load.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package x64
|
||||
|
||||
import "git.akyoto.dev/cli/q/src/build/cpu"
|
||||
|
||||
// LoadRegister loads from memory into a register.
|
||||
func LoadRegister(code []byte, destination cpu.Register, offset byte, numBytes byte, source cpu.Register) []byte {
|
||||
return memoryAccess(code, 0x8A, 0x8B, source, offset, numBytes, destination)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue