Atari.Org
Click Here
HomeNewsServicesForumsSupport

Talk Atari

Atari.Org Forums


16/32-Bit

8-Bits

Classics

Emulation

Jaguar

Lynx

Classic Consoles Forum 8-Bits Forum 16/32 Forum
Emulation Forum Jaguar Forum Lynx Forum
 
 Subject: RE: STE Rasters in ASM
Author: jason (dnvrdslgw13poold17.dnvr.uswest.net)
Date:   09-29-2002 07:42

Timer B and HBL interupt code looks very similar. Both end in RTE (of course). Timer B code, though, also must clear the MFP in service bit on exit.

Do you wish to do one interupt at the top of the screen (scanline 0) and then one interupt at scanline 100? This isn't too hard to do. The MFP can even count the 100 lines so that your 2nd interupt occurs just where you want it to.

The interupt occurs at the left screen edge, it is triggered by the display enable signal from the glue, I believe. If you need it to occur at a rock solid point then you can use sync-lock tricks (the same used for Left/Right overscan code). These tricks involve using the video address register at $ffff8209 to introduce a delay into the code (jmp into nops or a LSL instruction) in order to lock the interupt code into sync with the video shifter. They are expensive in terms of processor time. Try to avoid them. Are you using the blitter? It can really mess up interupt timing, as it takes over the bus and leaves the poor processor frozen!

An ST scan line lasts about 512 cycles I believe. Even if your interupt code consumes 2 whole scan lines of processor time you should have about 99% left for other tasks.

I'll try to find some source code for you, but from there i'm afraid you'll have to figure out the rest.

-jason

 Topics Author  Date
  STE Rasters in ASM new elliot 09-28-2002 11:37 
   RE: STE Rasters in ASM new jason 09-28-2002 18:47 
    RE: STE Rasters in ASM new elliot 09-28-2002 19:17 
     RE: STE Rasters in ASM new Matthias Arndt 09-28-2002 19:27 
      RE: STE Rasters in ASM new elliot 09-29-2002 09:34 
      RE: STE Rasters in ASM new elliot 09-30-2002 15:23 
     RE: STE Rasters in ASM  jason 09-29-2002 07:42 
      RE: STE Rasters in ASM new elliot 09-29-2002 09:33 
     RE: STE Rasters in ASM new Anders Eriksson 09-29-2002 11:50 
      RE: STE Rasters in ASM new elliot 09-30-2002 15:21 
   Now the Blitter new elliot 09-29-2002 11:11 
    RE: Now the Blitter new jason 09-29-2002 17:38 
     RE: Now the Blitter new elliot 09-30-2002 15:27 
    RE: Now the Blitter new The Paranoid 09-30-2002 09:46 
     RE: Now the Blitter new elliot 09-30-2002 15:26 
      RE: Now the Blitter new The Paranoid 10-01-2002 10:36 
   and to turn off the mouse new elliot 09-30-2002 15:30 
    RE: and to turn off the mouse new jason 10-01-2002 02:26 
     RE: and to turn off the mouse new ggn/KUA software productions 10-05-2002 22:01 
      RE: and to turn off the mouse new Defjam 10-09-2002 19:21 

 Reply To This Message
 Your Name:
 Your Email:
 Subject:
 Human verification:   What's this?
               _    __     _ _     
 _ __  ___ _ _| |_ / _|___| (_)___ 
| '_ \/ _ \ '_|  _|  _/ _ \ | / _ \
| .__/\___/_|  \__|_| \___/_|_\___/
|_|                                
    



Copyright © 1997-2024 Atari.Org 
Atari is registered trademark of Infogrames