aboutsummaryrefslogtreecommitdiffstats
path: root/Assembly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Assembly.cpp')
-rw-r--r--Assembly.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/Assembly.cpp b/Assembly.cpp
index 317a92fc..a8491376 100644
--- a/Assembly.cpp
+++ b/Assembly.cpp
@@ -40,9 +40,19 @@ void Assembly::append(Assembly const& _a)
ostream& Assembly::streamOut(ostream& _out) const
{
- for (auto const& i: m_items)
- {
- }
+ for (AssemblyItem const& i: m_items)
+ switch (i.m_type)
+ {
+ case Operation:
+ _out << c_instructionInfo.at((Instruction)(byte)i.m_data).name << endl;
+ break;
+ case Push:
+ _out << i.m_data << endl;
+ break;
+/* case PushString:
+ _out << i.m_data << endl;
+ break;*/
+ }
return _out;
}