Improved label consistency
This commit is contained in:
parent
a8d15a4305
commit
1268344238
11 changed files with 36 additions and 31 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue