aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/src/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/src/core.h')
-rw-r--r--src/core/src/core.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/src/core/src/core.h b/src/core/src/core.h
index 2270e46e..f018ff6e 100644
--- a/src/core/src/core.h
+++ b/src/core/src/core.h
@@ -35,34 +35,24 @@ class EmuWindow;
namespace Core {
-// State of the full emulator
-typedef enum {
- SYS_NULL = 0, ///< System is in null state, nothing initialized
- SYS_IDLE, ///< System is in an initialized state, but not running
- SYS_RUNNING, ///< System is running
- SYS_LOADING, ///< System is loading a ROM
- SYS_HALTED, ///< System is halted (error)
- SYS_STALLED, ///< System is stalled (unused)
- SYS_DEBUG, ///< System is in a special debug mode (unused)
- SYS_DIE ///< System is shutting down
-} SystemState;
-
-
/// Start the core
void Start();
-/// Kill the core
-void Kill();
+/// Run the core CPU loop
+void RunLoop();
+
+/// Step the CPU one instruction
+void SingleStep();
-/// Stop the core
+/// Halt the core
+void Halt();
+
+/// Kill the core
void Stop();
/// Initialize the core
int Init(EmuWindow* emu_window);
-extern SystemState g_state; ///< State of the emulator
-extern bool g_started; ///< Whether or not the emulator has been started
-
} // namespace
////////////////////////////////////////////////////////////////////////////////////////////////////