| Posted By 
  KiCHY
 on 2018-04-24
 11:40:41
 
 |  Re: IRQ Interrupt examples 
 Hi Carrion,
 
 One issue can be the direct writing of $ff07. You erase the NTSC flag, and if you left your emulator in NTSC video mode, interesting things can happen
  
 Can you specify that "won't work at all" thing? Does the IRQ setup routine finish running? Does the interrupt fires at least once? What can you see on screen? Etc.
 
 If you want several effects at different raster positions, perform them in separate interrupts (reconfiguring $fffe-f and $ff0b). Never wait 10-20-100 raster lines in the interrupt. Don't forget: when your interrupt runs, the main program is suspended. Spending several 10s percent CPU time in interrupt only to wait for raster position is not recommended.
 
 |