Implemented loads with register offsets
This commit is contained in:
parent
c86766bd33
commit
144810c6c8
13 changed files with 320 additions and 145 deletions
|
@ -5,7 +5,6 @@ import (
|
|||
|
||||
"git.akyoto.dev/cli/q/src/asm"
|
||||
"git.akyoto.dev/cli/q/src/ast"
|
||||
"git.akyoto.dev/cli/q/src/cpu"
|
||||
"git.akyoto.dev/cli/q/src/errors"
|
||||
"git.akyoto.dev/cli/q/src/types"
|
||||
)
|
||||
|
@ -27,7 +26,7 @@ func (f *Function) CompileAssignArray(node *ast.Assign) error {
|
|||
memory := asm.Memory{
|
||||
Base: variable.Register,
|
||||
Offset: 0,
|
||||
OffsetRegister: cpu.Register(math.MaxUint8),
|
||||
OffsetRegister: math.MaxUint8,
|
||||
Length: byte(1),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue