1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-08 21:29:31 +00:00

Unbreak BRK test case - add RAM for ISR vector.

This commit is contained in:
Radosław Kujawa 2018-03-24 23:06:29 +01:00
parent 63168d6f84
commit 13a4c73807

View File

@ -8,6 +8,9 @@
#include "bus.h"
#include "rk65c02.h"
#include "instruction.h"
#include "log.h"
#include "device_ram.h"
#include "utils.h"
#define ISR_ADDR 0xC100
@ -23,7 +26,10 @@ ATF_TC_BODY(intr_brk, tc)
rk65c02emu_t e;
bus_t b;
rk65c02_loglevel_set(LOG_TRACE);
b = bus_init_with_default_devs();
bus_device_add(&b, device_ram_init(0x100), 0xFF00);
e = rk65c02_init(&b);
e.regs.PC = ROM_LOAD_ADDR;