From 13a4c73807757800946595ac434a09c44eda3535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Sat, 24 Mar 2018 23:06:29 +0100 Subject: [PATCH] Unbreak BRK test case - add RAM for ISR vector. --- test/test_interrupt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_interrupt.c b/test/test_interrupt.c index 5ea77e9..a895a62 100644 --- a/test/test_interrupt.c +++ b/test/test_interrupt.c @@ -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;