I found this piece of code:
Code: Select all
void handleHBlank()
{
asm("move.l #0xc0000000, 0xc00004.l");
while((*((volatile u16*)GFX_CTRL_PORT) & 4) == 0);
asm("move.w gradientTestColor2, 0xc00000.l");
gradientTestColor2 -= 0x100;
}
My HInt setup is this one:
Code: Select all
//Configurar interrupciones
SYS_setHIntCallback(&hint_irq);
VDP_setHInterrupt(1);
VDP_setHIntCounter(1);//HInt occurs each 1+1 Hint, each 2 scanlines