aboutsummaryrefslogtreecommitdiffstats
path: root/src/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu.c')
-rw-r--r--src/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu.c b/src/cpu.c
index 9e7f685..5b73724 100644
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -407,6 +407,8 @@ int cpu_step(GB *gb) {
case 0xCB: do_cb(gb); break;
+ case 0xED: gb->poweroff = true; break; // (illegal on HW) clean-exit signal
+
default:
// 0x40-0xBF block: LD r,r' and ALU A,r
if (op >= 0x40 && op < 0x80) {