summaryrefslogtreecommitdiff
path: root/src/ControlFlow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ControlFlow.cpp')
-rw-r--r--src/ControlFlow.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ControlFlow.cpp b/src/ControlFlow.cpp
new file mode 100644
index 0000000..52465ae
--- /dev/null
+++ b/src/ControlFlow.cpp
@@ -0,0 +1,13 @@
+#include "ControlFlow.h"
+
+#include "ExecutorCases.h"
+#include "CPUContext.h"
+
+#include <iostream>
+
+namespace executor_cases {
+ void Hlt(CPUContext& cc){
+ std::cout << "[Instruction] hlt" << std::endl;
+ cc.m_IsHalted = true;
+ }
+}