Jump to content



0

VBLANK Routine on 7800?


1 reply to this topic

#1 Heaven/TQA OFFLINE  

Heaven/TQA

    Quadrunner

  • 8,109 posts
  • Location:Baden-Württemberg, Germany

Posted Sun Dec 30, 2001 2:30 PM

how can I initialize a routine (VBL) on 7800 which will be called every 50/60 second?

not to be too complicated... i need a VBLANK-Interruptroutine... ;=)

at the moment i do it in this way...

loop
jsr WaitVBLANK
jsr game-engine
...

but this is not what i want because above is embedded into the main-code... but i need a "real" VBI... the robotron source havent showed me how to do it...

i tried the IRQ but it seems not working... my DLI routine works...

thanks for your help....

#2 DanBoris OFFLINE  

DanBoris

    Dragonstomper

  • 930 posts
  • Location:New Jersey, USA

Posted Sun Dec 30, 2001 6:45 PM

Unlike the 5200, the 7800 does NOT have a vertical blank interrupt. A way around this is to put a single line region at the very end of your display list and set a Display List Interrupt on that line. This way you will get an NMI to the processor at the end of the display list.

Dan




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users