mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-25 15:18:01 +00:00
Sort out some exception and member initialisation rules.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
EightBit::Profiler::Profiler() {
|
||||
EightBit::Profiler::Profiler() noexcept {
|
||||
m_instructions.fill(0);
|
||||
m_addresses.fill(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user