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-28-2002 18:47

Of course, raster ints are the same on the STE as the ST. You have two choices for them. You can use the HBL vector or you can use the MFP-Timer B vector. Timer B event-count interupts allow you to generate an exception on every _visible_ scan line. Whereas HBL interupts execute on _every_ scan line (including the top and bottom borders).

The accuracy of the interupt timing depends on the how much time the processor spends on an instruction or another exception before servicing the interupts. for example, code with a lot of big MOVEM.Ls will result in very unstable interupts because the processor will likely be busy with the MOVEMs when the interupt is triggered.

Which type would you like code for? I can send you some, but i'll have to retrieve it from my falcon first. Here are some addresses that are helpfull.

$68.L: HBL exception vector (set priority level in 680x0 status register to one before using)

$120.L : MFP-Timer B exception vector (set up Timer B for event count mode before using)

$fffffa07.B: MFP interupt enable
$fffffa0f.B: MFP interupt in-service
$fffffa13.B: MFP interupt mask

bit #0 in the above control registers selects Timer B.

$fffffa1b.B: Timer B control
write $08 to this address to put timer B in event count mode

$fffffa21.B: Timer B Data
write the number of events to count before the next interupt here (i.e. write 1 for every scanline or 2 to wait a scanline etc.)

hope this is of some use,

-jason

 Topics Author  Date
  STE Rasters in ASM new elliot 09-28-2002 11:37 
   RE: STE Rasters in ASM  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 new 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