1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-13 01:29:57 +00:00

Fix pointer usage.

This commit is contained in:
Radosław Kujawa 2017-01-31 14:11:21 +01:00
parent 44f723b016
commit afadfd8b13

View File

@ -262,8 +262,8 @@ emul_brk(rk65c02emu_t *e, void *id, instruction_t *i)
e->regs.P &= ~P_DECIMAL;
/* load address from IRQ vector into program counter */
e->regs.PC = bus_read_1(&e->bus, VECTOR_IRQ);
e->regs.PC |= bus_read_1(&e->bus, VECTOR_IRQ + 1) << 8;
e->regs.PC = bus_read_1(e->bus, VECTOR_IRQ);
e->regs.PC |= bus_read_1(e->bus, VECTOR_IRQ + 1) << 8;
}