From 285d2ee8286248d51499d6be23481dcc0fcbb1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Wed, 25 Jan 2017 21:17:18 +0100 Subject: [PATCH] Initial state of the CPU has IRQ disable bit set. --- src/rk65c02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rk65c02.c b/src/rk65c02.c index 77be08b..41a92b0 100644 --- a/src/rk65c02.c +++ b/src/rk65c02.c @@ -17,7 +17,7 @@ rk65c02_init(bus_t *b) e.bus = b; e.state = STOPPED; - e.regs.P = P_UNDEFINED; + e.regs.P = P_UNDEFINED|P_IRQ_DISABLE; return e; }