More clang warnings corrected.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2017-11-30 23:15:40 +00:00
parent 4b2d84dba3
commit 12385dcc6f
2 changed files with 4 additions and 2 deletions

View File

@ -61,6 +61,7 @@ namespace EightBit {
protected:
IntelProcessor(Bus& bus);
virtual ~IntelProcessor() = default;
template<class T> static void adjustSign(uint8_t& f, uint8_t value) {
setFlag(f, T::SF, value & T::SF);

View File

@ -27,7 +27,7 @@ namespace EightBit {
Bit13 = Bit12 << 1,
Bit14 = Bit13 << 1,
Bit15 = Bit14 << 1,
Bit16 = Bit15 << 1,
Bit16 = Bit15 << 1
};
enum Masks {
@ -46,7 +46,7 @@ namespace EightBit {
Mask13 = Bit13 - 1,
Mask14 = Bit14 - 1,
Mask15 = Bit15 - 1,
Mask16 = Bit16 - 1,
Mask16 = Bit16 - 1
};
static int highNibble(int value) { return value >> 4; }
@ -90,6 +90,7 @@ namespace EightBit {
static void clearFlag(uint8_t& f, int flag, bool condition) { condition ? clearFlag(f, flag) : setFlag(f, flag); }
Processor(Bus& memory);
virtual ~Processor() = default;
virtual uint8_t fetchByte();
virtual void fetchWord(register16_t& output);