Implemented length storage of allocated memory
This commit is contained in:
parent
79bb606e8d
commit
3043e4e2c4
27 changed files with 134 additions and 49 deletions
|
@ -3,6 +3,6 @@ package x86
|
|||
import "git.akyoto.dev/cli/q/src/cpu"
|
||||
|
||||
// LoadRegister loads from memory into a register.
|
||||
func LoadRegister(code []byte, destination cpu.Register, offset byte, length byte, source cpu.Register) []byte {
|
||||
func LoadRegister(code []byte, destination cpu.Register, offset int8, length byte, source cpu.Register) []byte {
|
||||
return memoryAccess(code, 0x8A, 0x8B, source, offset, length, destination)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue