spo/simulator_SIC_XE/src/node.cpp
2025-12-10 09:26:34 +01:00

22 lines
No EOL
368 B
C++

#include "node.h"
string Node::getLabel() const
{
return _label;
}
string Node::getComment() const
{
return _comment;
}
std::shared_ptr<Mnemonic> Node::getMnemonic() const
{
return _mnemonic;
}
string Node::toString() const
{
return (_label.length() > 0 ? _label + " " : "") + (_mnemonic ? _mnemonic->toString() + " ": "") + "." + _comment;
}