case 119: // macdef
case 120: // time
case 121: // date
+ case KW_FILESIZE: // filesize
j = -1;
}
{
equrundef = 1;
j = -1;
- //printf("line %d, equrundef found\n", curlineno);
}
// If not tokenized keyword OR token was not found
{
// Only proceed if no equrundef has been detected. In that case we need to store the symbol
// because the directive handler (d_equrundef) will run outside this loop, further into procln.c
- if (!equrundef)
+ if (!equrundef && !disabled)
{
- // Last attempt: let's see if this is an equated register
+ // Last attempt: let's see if this is an equated register.
+ // If yes, then just store the register's keyword value instead of the symbol
char temp = *ln;
*ln = 0;
sy = lookup(nullspot, LABEL, 0);
{
if (sy->sattre & EQUATEDREG)
{
- uint32_t register_token = sy->svalue;
- if (rgpu || rdsp)
- {
- // If we are in GPU or DSP mode then mark the register bank.
- // We will use it during EvaluateRegisterFromTokenStream()
- // when we check if we can use the equated register with the currently
- // selected bank.
- // Note (ggn): I find all this superfluous. Do we really want to be so
- // protective? Plus, the current implementation happily skips
- // these checks on .equr that are set during fixups - oops!
- register_token |= 0x80000000; // Mark that this is an .equr
- if (sy->sattre & BANK_1)
- {
- register_token |= 0x40000000; // Mark bank 1
- }
- }
- *tk.u32++ = register_token;
+ *tk.u32++ = sy->svalue;
stuffnull = 0;
continue;
}