Implemented length storage of allocated memory
This commit is contained in:
@ -24,5 +24,5 @@ func (a *Assembler) SetData(label string, bytes []byte) {
|
||||
a.Data = data.Data{}
|
||||
}
|
||||
|
||||
a.Data[label] = bytes
|
||||
a.Data.Insert(label, bytes)
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import "git.akyoto.dev/cli/q/src/cpu"
|
||||
|
||||
type Memory struct {
|
||||
Base cpu.Register
|
||||
Offset byte
|
||||
Offset int8
|
||||
OffsetRegister cpu.Register
|
||||
Length byte
|
||||
}
|
||||
|
Reference in New Issue
Block a user