mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-03 05:05:15 +00:00
4c6f44c394
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
22 lines
358 B
C++
22 lines
358 B
C++
#include "stdafx.h"
|
|
#include "Game.h"
|
|
|
|
#include <algorithm>
|
|
|
|
Game::Game(const Configuration& configuration)
|
|
: m_configuration(configuration),
|
|
m_board(configuration) {
|
|
}
|
|
|
|
void Game::initialise() {
|
|
m_board.initialise();
|
|
}
|
|
|
|
void Game::runLoop() {
|
|
auto& cpu = m_board.getCPUMutable();
|
|
auto cycles = 0;
|
|
while (!cpu.isHalted()) {
|
|
cycles = cpu.step();
|
|
}
|
|
}
|