#7860 - doragasu - Thu Jun 26, 2003 11:54 pm
I tried VBlankIntrWait BIOS function with this code:
But doesn't work, when I call SWI 5, the system hangs up and never wakes up. I know VBLANK int es correctly enabled, but this doesn't work.
I tried to test IntrWait (SWI 4) with a similar program, but also didn't work for me.
Despite this, all other BIOS functions I tried (including Halt function (SWI 2)) worked for me, dunno why SWI 4 and 5 didn't work.
Code: |
#define VBlankIntrWait asm volatile("swi 0x50000") .................. REG_IE = INT_VBLANK; REG_DISPSTAT |= STAT_VB_ENABLE; REG_IME = 1; ................. while (1) { VBlankIntrWait; ................. } |
But doesn't work, when I call SWI 5, the system hangs up and never wakes up. I know VBLANK int es correctly enabled, but this doesn't work.
I tried to test IntrWait (SWI 4) with a similar program, but also didn't work for me.
Despite this, all other BIOS functions I tried (including Halt function (SWI 2)) worked for me, dunno why SWI 4 and 5 didn't work.