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: and to turn off the mouse
Author: jason (dnvrdslgw13poold17.dnvr.uswest.net)
Date:   10-01-2002 02:26

if you don't want mouse movement to effect your rasters at all then you can disable the keyboard interupt of the MFP. Of course, this means that you will not be able to use the BIOS routes to read the keyboard, but you can always check $fffffc02.b periodically to see if a key has been pressed (most demo code uses this sloppy technique). Example: Space bar=$39, when you hit space, $fffffc02.b=$39.

To disable the keyboard/midi interupt ($118.l):
bclr.b #6,$fffffa09.w

To enable the keyboard/midi interupt:
bset.b #6,$fffffa09.w

That will certainly keep the rasters from being disturbed by the mouse. If you don't want to do that you can write your own ACIA routine, but keep in mind that the MFP vector is shared by both MIDI and Keyboard, you have to poll the ACIAs to figure out who triggered the interupt!

By the way, make sure you disable TimerC if you dont need it, which I'm pretty confident you dont. It will interfere with rasters too. To do that: bclr.b #5,$fffffa09.w

Also, when the blitter and the 68K "share" the bus (the blitter must be set to "share" mode to do this) then they take turns using 64 cycles each. I really don't recommend using the blitter though. Show me code that uses the blitter and I can show you faster code that uses just the 68000.

-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 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  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