mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-02-08 03:30:36 +00:00
More clang warnings corrected.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
4b2d84dba3
commit
12385dcc6f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user