mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-02-09 01:25:45 +00:00
Fix assembler hopefully
This commit is contained in:
@@ -192,6 +192,7 @@ namespace Tesses::CrossLang {
|
||||
while(!IsSym("}",false))
|
||||
{
|
||||
auto name = ReadIdent();
|
||||
|
||||
if(name == "add")
|
||||
{
|
||||
instrs.push_back(std::make_shared<SimpleChunkInstruction>(ADD));
|
||||
@@ -541,6 +542,9 @@ namespace Tesses::CrossLang {
|
||||
auto lblName = lbl_prefix + "_" + ReadIdent();
|
||||
instrs.push_back(std::make_shared<LabelChunkInstruction>(lblName));
|
||||
}
|
||||
else {
|
||||
throw std::runtime_error("NOT IMPLEMENTED: " + name);
|
||||
}
|
||||
}
|
||||
}
|
||||
void EnsureSymbol(std::string txt)
|
||||
@@ -1048,7 +1052,8 @@ namespace Tesses::CrossLang {
|
||||
}
|
||||
if(chk)
|
||||
{
|
||||
chunks[chunkId].second.push_back(std::make_shared<ClosureInstruction>(PushChunk(chk->data),chk->scoped));
|
||||
auto item = std::make_shared<ClosureInstruction>(PushChunk(chk->data),chk->scoped);
|
||||
chunks[chunkId].second.push_back(item);
|
||||
}
|
||||
if(reso)
|
||||
{
|
||||
|
||||
@@ -622,6 +622,9 @@ namespace Tesses::CrossLang {
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
printf("ILL: %i\n", (int)code[i-1]);
|
||||
break;
|
||||
}
|
||||
|
||||
buffer.push_back('\n');
|
||||
|
||||
Reference in New Issue
Block a user