Implemented data labels

This commit is contained in:
Eduard Urbach 2024-07-13 00:13:13 +02:00
parent ff0b8ecb10
commit 1b75529bb3
Signed by: eduard
GPG key ID: 49226B848C78F6C8
18 changed files with 428 additions and 327 deletions

View file

@ -31,6 +31,11 @@ func (f *Function) ExecuteLeaf(operation token.Token, register cpu.Register, ope
}
return f.ExecuteRegisterNumber(operation, register, number)
case token.String:
if operation.Text() == "=" {
return f.TokenToRegister(operand, register)
}
}
return errors.New(errors.NotImplemented, f.File, operation.Position)