mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-07-26 02:24:07 +00:00
Ensure we use the pre-constructed I/O ports object.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ namespace EightBit {
|
|||||||
int step();
|
int step();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
InputOutput m_ports;
|
InputOutput& m_ports;
|
||||||
|
|
||||||
std::array<Instruction, 0x100> instructions;
|
std::array<Instruction, 0x100> instructions;
|
||||||
|
|
||||||
|
@@ -8,7 +8,8 @@ EightBit::Intel8080::Intel8080(Memory& memory, InputOutput& ports)
|
|||||||
: Processor(memory),
|
: Processor(memory),
|
||||||
a(0),
|
a(0),
|
||||||
f(0),
|
f(0),
|
||||||
m_interrupt(false) {
|
m_interrupt(false),
|
||||||
|
m_ports(ports) {
|
||||||
bc.word = de.word = hl.word = 0;
|
bc.word = de.word = hl.word = 0;
|
||||||
installInstructions();
|
installInstructions();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user