Sort out some exception and member initialisation rules.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-08-11 21:19:19 +01:00
parent b640da1910
commit 70c70af969
30 changed files with 157 additions and 123 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#include <iomanip>
#include <bitset>
EightBit::Disassembler::Disassembler() {
EightBit::Disassembler::Disassembler() noexcept {
// Disable exceptions where too many format arguments are available
m_formatter.exceptions(boost::io::all_error_bits ^ boost::io::too_many_args_bit);
}
+4 -4
View File
@@ -117,7 +117,7 @@ bool EightBit::Intel8080::callConditionalFlag(int flag) {
void EightBit::Intel8080::add(register16_t value) {
const auto result = HL().word + value.word;
HL().word = result;
HL() = result;
setFlag(F(), CF, result & Bit16);
}
@@ -229,7 +229,7 @@ void EightBit::Intel8080::xhtl() {
MEMPTR().low = BUS().read(SP());
BUS().write(L());
L() = MEMPTR().low;
++BUS().ADDRESS().word;
++BUS().ADDRESS();
MEMPTR().high = BUS().read();
BUS().write(H());
H() = MEMPTR().high;
@@ -374,10 +374,10 @@ void EightBit::Intel8080::execute(int x, int y, int z, int p, int q) {
case 3: // 16-bit INC/DEC
switch (q) {
case 0: // INC rp
++RP(p).word;
++RP(p);
break;
case 1: // DEC rp
--RP(p).word;
--RP(p);
break;
default:
UNREACHABLE;
+1 -1
View File
@@ -4,7 +4,7 @@
#include <iostream>
EightBit::Profiler::Profiler() {
EightBit::Profiler::Profiler() noexcept {
m_instructions.fill(0);
m_addresses.fill(0);
}