Added label type
This commit is contained in:
@ -34,7 +34,7 @@ func (c *compiler) store(x asm.Instruction) {
|
||||
OpSize: uint8(opSize),
|
||||
Size: uint8(size),
|
||||
Resolve: func() Address {
|
||||
destination, exists := c.codeLabels[operands.Label]
|
||||
destination, exists := c.codeLabels[operands.Label.Name]
|
||||
|
||||
if !exists {
|
||||
panic("unknown label")
|
||||
|
Reference in New Issue
Block a user