Implemented length storage of allocated memory

This commit is contained in:
Eduard Urbach 2025-02-09 14:14:41 +01:00
parent 1ff56e0856
commit 2b2e707520
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
27 changed files with 134 additions and 49 deletions

View file

@ -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)
}

View file

@ -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
}