Fixed a wrong optimisation switch test, corrected some messages, updated docs

This commit is contained in:
ggn 2022-04-17 11:40:46 +03:00 committed by Shamus Hammons
parent 0d82e7a797
commit 0a1fc020c1
2 changed files with 5 additions and 4 deletions

View File

@ -2653,7 +2653,7 @@ deposit_immediate_short_with_register:
if ((dspImmedEXVAL & 0xFFFF) == 0)
{
if (CHECK_OPTS(OPT_56K_AUTO_LONG))
if (CHECK_OPTS(OPT_56K_SHORT))
{
// Value's 16 lower bits are not set so the value can
// fit in a single byte (check parallel I move quoted
@ -2666,7 +2666,7 @@ deposit_immediate_short_with_register:
}
else
{
return error("Immediate value fits inside 8 bits, so using instruction short format - turn opt switch o11 on to bypass");
return error("Immediate value fits inside 8 bits, so using instruction short format - turn opt switch o10 on to bypass");
}
}
@ -2677,13 +2677,13 @@ deposit_immediate_short_with_register:
if (CHECK_OPTS(OPT_56K_AUTO_LONG))
{
if (optim_warn_flag)
warn("Immediate value short format forced but value does not fit inside 8 bits - switching to long format");
warn("o11: Immediate value short format forced but value does not fit inside 8 bits - switching to long format");
goto deposit_immediate_long_with_register;
}
else
{
return error("Immediate value short format forced but value does not fit inside 8 bits - turn opt switch o11 on to bypass - turn opt switch o11 on to bypass");
return error("Immediate value short format forced but value does not fit inside 8 bits - turn opt switch o11 on to bypass");
}
}

1
rmac.c
View File

@ -776,6 +776,7 @@ int main(int argc, char ** argv)
{
perm_verb_flag = 0; // Clobber "permanent" verbose flag
legacy_flag = 1; // Default is legacy mode on (:-P)
optim_flags[OPT_56K_SHORT] = 1; // This ensures compatibilty with Motorola's 56k assembler
cmdlnexec = argv[0]; // Obtain executable name
endian = GetEndianess(); // Get processor endianess