mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 00:29:47 +00:00
Use the newly added CPU pokeWord method.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
769c65394b
commit
337e35ca1b
@ -32,8 +32,7 @@ void Board::initialise() {
|
|||||||
CPU().reset();
|
CPU().reset();
|
||||||
|
|
||||||
poke(0, 0xc3); // JMP
|
poke(0, 0xc3); // JMP
|
||||||
poke(1, m_configuration.getStartAddress().low);
|
CPU().pokeWord(1, m_configuration.getStartAddress());
|
||||||
poke(2, m_configuration.getStartAddress().high);
|
|
||||||
|
|
||||||
poke(5, 0xc9); // ret
|
poke(5, 0xc9); // ret
|
||||||
}
|
}
|
||||||
|
@ -60,8 +60,7 @@ void Board::initialise() {
|
|||||||
CPU().powerOn();
|
CPU().powerOn();
|
||||||
|
|
||||||
poke(0x00, 0x4c);
|
poke(0x00, 0x4c);
|
||||||
poke(0x01, m_configuration.getStartAddress().low);
|
CPU().pokeWord(1, m_configuration.getStartAddress());
|
||||||
poke(0x02, m_configuration.getStartAddress().high);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Board::Cpu_ExecutingInstruction_Profile(const EightBit::MOS6502& cpu) {
|
void Board::Cpu_ExecutingInstruction_Profile(const EightBit::MOS6502& cpu) {
|
||||||
|
Loading…
Reference in New Issue
Block a user