Add support of unnamed labels with @ (.localchar) prefix.

This commit is contained in:
Evgeny Vrublevsky
2023-06-03 16:33:18 +03:00
parent b993d88339
commit c500cb9086
4 changed files with 59 additions and 13 deletions

View File

@@ -107,8 +107,12 @@ ExprNode* ULabRef (int Which)
int Index;
ULabel* L;
/* Which can never be 0 */
PRECONDITION (Which != 0);
/* Which should not be 0 */
if (Which == 0) {
Error ("Invalid unnamed label reference");
/* We must return something valid */
return GenCurrentPC();
}
/* Get the index of the referenced label */
if (Which > 0) {