1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-01 05:41:34 +00:00

Declaring const in .h02 file no longer generates code

This commit is contained in:
Curtis F Kaylor 2018-07-26 13:39:13 -04:00
parent 8ab138777c
commit 8334e75599

View File

@ -61,12 +61,13 @@ void pconst(int m) {
getwrd(); //Get constant name
DEBUG("Defining constant '%s',", word)
strncpy(connam[concnt], word, VARLEN);
setlbl(word); //Set label Assembler Line
if (alcvar) setlbl(word); //Set label Assembler Line
expect('=');
conval[concnt++] = prsbyt(); //Get Value
ACMNT(word); //comment value
asmlin(EQUOP, value); //Write Definition
if (alcvar) asmlin(EQUOP, value); //Write Definition
DETAIL(" defined as '%s'\n", value)
if (!alcvar) SCMNT(""); //Clear Comment
} while (look(','));
expect(';');
DEBUG("Constant Declaration Completed\n", 0)