According to Gameboy Programming Manual,
HALT mode is canceled by the following events, which have the starting addresses indicated.
A LOW signal to the /RESET terminal Starting address: 0x0000
The interrupt-enable flag and its corresponding interrupt request flag are set
IME = 0 (Interrupt Master Enable flag disabled) Starting address: address following that of the HALT instruction
IME = 1 (Interrupt Master Enable flag enabled) Starting address: each interrupt starting address
Assume a program enters HALT
mode with Interrupt Master Enable flag enabled IME = 1
and Interrupt Enable disabled for any interrupt 0xFF0F = 0
, what would happen? What is the expected behaviour on the actual Gameboy device?