From afadfd8b1300d5044c0d98644235e713bd52e8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Tue, 31 Jan 2017 14:11:21 +0100 Subject: [PATCH] Fix pointer usage. --- src/emulation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emulation.c b/src/emulation.c index 801ae7d..eb881c9 100644 --- a/src/emulation.c +++ b/src/emulation.c @@ -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; }