Added label type

This commit is contained in:
2025-03-13 16:57:13 +01:00
parent d96c351b4b
commit c1913d99d0
32 changed files with 102 additions and 63 deletions

View File

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