mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-21 18:29:57 +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:
parent
786249a25e
commit
3325b07a28
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user