Open mmuszkow opened 7 years ago
This might be related to how you use the hardware here. What does "set_interrupts()" do? Anyway, try moving it before the interrupt enabler, and put a halt (whatever the C equivalent is) into your loop.
set_interrupts(VBL_IFLAG | JOY_IFLAG);
I think set_bkg_data()
needs VBL interrupt active for moving the data into VRAM
So it is likely that the emulator does not hang and you are just not getting any visual feedback.
When I try to handle interrupts using the
add_JOY
,add_VBL
etc. functions, the emulator (BGB) hangs after the handler is called for the first time. The code I used for test: