mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-19 19:31:04 +00:00
Declaring const in .h02 file no longer generates code
This commit is contained in:
parent
8ab138777c
commit
8334e75599
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user