opcodes working again

This commit is contained in:
marketideas
2019-11-16 20:39:09 -08:00
parent 6664a3e103
commit 140121f13e
6 changed files with 70 additions and 45 deletions
+8
View File
@@ -1165,6 +1165,10 @@ int CLASS::callOpCode(std::string op, MerlinLine &line)
line.flags |= FLAG_FORCELONG;
break;
}
if (line.expr_value>=0x100)
{
line.flags|=FLAG_FORCEABS;
}
auto itr = opcodes.find(Poco::toUpper(op));
@@ -1354,6 +1358,10 @@ void CLASS::complete(void)
std::string currentdir = Poco::Path::current();
savepath = processFilename(savepath, currentdir, 0);
if (isDebug()>=1)
{
savepath+="1"; // append this to the end to help with testing against other assemblers
}
printf("saving to file: %s\n", savepath.c_str());
std::ofstream f(savepath);