Improved label consistency

This commit is contained in:
2025-02-21 17:04:13 +01:00
parent 08436c31c0
commit 4caac57210
11 changed files with 36 additions and 31 deletions

View File

@ -23,7 +23,7 @@ func (c *compiler) move(x asm.Instruction) {
opSize := len(c.code) - size - start
regLabel := x.Data.(*asm.RegisterLabel)
if strings.HasPrefix(regLabel.Label, "data_") {
if strings.HasPrefix(regLabel.Label, "data ") {
c.dataPointers = append(c.dataPointers, &pointer{
Position: Address(len(c.code) - size),
OpSize: uint8(opSize),