Correct some virtual and constexpr expressions.

Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2021-08-23 09:44:48 +01:00
parent bf1c7d0e37
commit 6bf28f1480
6 changed files with 31 additions and 13 deletions

View File

@@ -1,6 +1,9 @@
#include "stdafx.h"
#include "../inc/IntelProcessor.h"
std::array<int, 8> EightBit::IntelProcessor::m_halfCarryTableAdd = { { 0, 0, 1, 0, 1, 0, 1, 1 } };
std::array<int, 8> EightBit::IntelProcessor::m_halfCarryTableSub = { { 0, 1, 1, 1, 0, 0, 0, 1 } };
EightBit::IntelProcessor::IntelProcessor(Bus& bus)
: LittleEndianProcessor(bus) {
for (int i = 0; i < 0x100; ++i)