mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
Correct a few warnings reported by "clang"
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
6dbb1e1c13
commit
a0f7d584b6
@ -56,8 +56,8 @@ namespace EightBit {
|
||||
|
||||
int interrupt(bool maskable, uint8_t value);
|
||||
|
||||
virtual int execute(uint8_t opcode);
|
||||
int step();
|
||||
virtual int execute(uint8_t opcode) final;
|
||||
virtual int step() final;
|
||||
|
||||
virtual register16_t& AF() override;
|
||||
virtual register16_t& BC() override;
|
||||
@ -104,8 +104,8 @@ namespace EightBit {
|
||||
std::array<register16_t, 2> m_accumulatorFlags;
|
||||
int m_accumulatorFlagsSet = 0;
|
||||
|
||||
register16_t m_ix = { 0xff, 0xff };
|
||||
register16_t m_iy = { 0xff, 0xff };
|
||||
register16_t m_ix = { { 0xff, 0xff } };
|
||||
register16_t m_iy = { { 0xff, 0xff } };
|
||||
|
||||
refresh_t m_refresh = 0x7f;
|
||||
|
||||
|
@ -172,6 +172,6 @@ namespace EightBit {
|
||||
|
||||
private:
|
||||
std::array<opcode_decoded_t, 0x100> m_decodedOpcodes;
|
||||
register16_t m_sp = { 0xff, 0xff };
|
||||
register16_t m_sp = { { 0xff, 0xff } };
|
||||
};
|
||||
}
|
@ -141,8 +141,8 @@ namespace EightBit {
|
||||
private:
|
||||
Bus& m_bus;
|
||||
int m_cycles = 0;
|
||||
register16_t m_pc = { 0, 0 };
|
||||
register16_t m_memptr = { 0, 0 };
|
||||
register16_t m_pc = { { 0, 0 } };
|
||||
register16_t m_memptr = { { 0, 0 } };
|
||||
bool m_halted = false;
|
||||
bool m_power = false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user