mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-09-01 15:29:11 +00:00
Merge branch 'master' of https://github.com/MoleskiCoder/EightBit
This commit is contained in:
commit
c54c2a681b
@ -45,9 +45,9 @@ namespace EightBit {
|
||||
InputOutput& m_ports;
|
||||
|
||||
register16_t af;
|
||||
register16_t bc = 0xffff;
|
||||
register16_t de = 0xffff;
|
||||
register16_t hl = 0xffff;
|
||||
register16_t bc = Mask16;
|
||||
register16_t de = Mask16;
|
||||
register16_t hl = Mask16;
|
||||
|
||||
auto R(const int r) {
|
||||
switch (r) {
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "Chip.h"
|
||||
#include "Signal.h"
|
||||
#include "Register.h"
|
||||
#include "EventArgs.h"
|
||||
@ -64,7 +65,7 @@ namespace EightBit {
|
||||
|
||||
|
||||
private:
|
||||
uint8_t m_data = 0xff;
|
||||
register16_t m_address = 0xffff;
|
||||
uint8_t m_data = Chip::Mask8;
|
||||
register16_t m_address = Chip::Mask16;
|
||||
};
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ namespace EightBit {
|
||||
|
||||
private:
|
||||
std::array<opcode_decoded_t, 0x100> m_decodedOpcodes;
|
||||
register16_t m_sp = 0xffff;
|
||||
register16_t m_sp = Mask16;
|
||||
register16_t m_memptr;
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "Chip.h"
|
||||
|
||||
namespace EightBit {
|
||||
|
||||
@ -11,7 +12,7 @@ namespace EightBit {
|
||||
enum AccessLevel { Unknown, ReadOnly, ReadWrite, };
|
||||
|
||||
Memory& memory;
|
||||
uint16_t begin = 0xffff;
|
||||
uint16_t begin = Chip::Mask16;
|
||||
uint16_t mask = 0U;
|
||||
AccessLevel access = Unknown;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user