This commit is contained in:
2024-08-07 09:12:07 -04:00
parent ca445435a0
commit fdfadd5c7e
1021 changed files with 73601 additions and 0 deletions

20
as68hc11/SYMBOL.CPP Normal file
View File

@@ -0,0 +1,20 @@
#include <as68hc11/symbol.hpp>
#include <common/stdio.hpp>
Symbol::operator String(void)
{
String strSymbol;
String strSymbolType;
if(ConstantSymbol==symbolType())strSymbolType="ConstantSymbol";
else if(KeywordSymbol==symbolType())strSymbolType="KeywordSymbol";
else if(RegisterSymbol==symbolType())strSymbolType="RegisterSymbol";
else if(DirectiveSymbol==symbolType())strSymbolType="DirectiveSymbol";
else if(PreprocessorSymbol==symbolType())strSymbol="PreprocessorSymbol";
else if(UserSymbol==symbolType())strSymbolType="UserSymbol";
else if(UnknownSymbol==symbolType())strSymbolType="UnknownSymbol";
::sprintf(strSymbol,"'%s' id:%d type:%s",(char*)symbolName(),identifier(),(char*)strSymbolType);
strSymbol+=String(" ")+Instruction::operator String();
return strSymbol;
}