Use the newly added CPU pokeWord method.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-10-14 20:39:09 +01:00
parent 769c65394b
commit 337e35ca1b
2 changed files with 2 additions and 4 deletions

View File

@ -32,8 +32,7 @@ void Board::initialise() {
CPU().reset();
poke(0, 0xc3); // JMP
poke(1, m_configuration.getStartAddress().low);
poke(2, m_configuration.getStartAddress().high);
CPU().pokeWord(1, m_configuration.getStartAddress());
poke(5, 0xc9); // ret
}

View File

@ -60,8 +60,7 @@ void Board::initialise() {
CPU().powerOn();
poke(0x00, 0x4c);
poke(0x01, m_configuration.getStartAddress().low);
poke(0x02, m_configuration.getStartAddress().high);
CPU().pokeWord(1, m_configuration.getStartAddress());
}
void Board::Cpu_ExecutingInstruction_Profile(const EightBit::MOS6502& cpu) {