mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-21 18:29:57 +00:00
Correct a couple of small issues
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
e688411cb9
commit
5530522f11
@ -45,9 +45,9 @@ namespace EightBit {
|
|||||||
InputOutput& m_ports;
|
InputOutput& m_ports;
|
||||||
|
|
||||||
register16_t af;
|
register16_t af;
|
||||||
register16_t bc = 0xffff;
|
register16_t bc = Mask16;
|
||||||
register16_t de = 0xffff;
|
register16_t de = Mask16;
|
||||||
register16_t hl = 0xffff;
|
register16_t hl = Mask16;
|
||||||
|
|
||||||
auto R(const int r) {
|
auto R(const int r) {
|
||||||
switch (r) {
|
switch (r) {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "Chip.h"
|
||||||
#include "Signal.h"
|
#include "Signal.h"
|
||||||
#include "Register.h"
|
#include "Register.h"
|
||||||
#include "EventArgs.h"
|
#include "EventArgs.h"
|
||||||
@ -57,7 +58,7 @@ namespace EightBit {
|
|||||||
void loadHexFile(std::string path);
|
void loadHexFile(std::string path);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t m_data = 0xff;
|
uint8_t m_data = Chip::Mask8;
|
||||||
register16_t m_address = 0xffff;
|
register16_t m_address = Chip::Mask16;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ namespace EightBit {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::array<opcode_decoded_t, 0x100> m_decodedOpcodes;
|
std::array<opcode_decoded_t, 0x100> m_decodedOpcodes;
|
||||||
register16_t m_sp = 0xffff;
|
register16_t m_sp = Mask16;
|
||||||
register16_t m_memptr;
|
register16_t m_memptr;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include "Chip.h"
|
||||||
|
|
||||||
namespace EightBit {
|
namespace EightBit {
|
||||||
|
|
||||||
@ -11,7 +12,7 @@ namespace EightBit {
|
|||||||
enum AccessLevel { Unknown, ReadOnly, ReadWrite, };
|
enum AccessLevel { Unknown, ReadOnly, ReadWrite, };
|
||||||
|
|
||||||
Memory& memory;
|
Memory& memory;
|
||||||
uint16_t begin = 0xffff;
|
uint16_t begin = Chip::Mask16;
|
||||||
uint16_t mask = 0U;
|
uint16_t mask = 0U;
|
||||||
AccessLevel access = Unknown;
|
AccessLevel access = Unknown;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user