|
Atari coding BBS
Another STE question |
Posted by: Bod/STAX
|
May,10.2012-20:28
|
According to the following link:
http://atari-ste.anvil-soft.com/html/devdocu3.htm
When starting the blitter to perform an operation in shared mode you should do the following loop to hand the 64 cycles allocated to the 68k back to the blitter to get the best results:
loop: bset #7,$fffff8a3c.w
nop
bne.s loop
However I've always though that the following is the best way to do it if you need to switch off the blitter under interrupts as well as performing an operation in shared mode (Griff of IC does it this way too):
loop: btst #7,$fffff8a3c.w
nop
bne.s loop
Which is actually the best method?
Also a while back I posted about a problem with the blitter interferring with timer b lower border code. I came up with a way to fix it but I've now found out that I get a graphical glitch with it, so I just want to clarify the way it was originally suggested I do it here:
lower_border: bclr #7,$fffff8a3c.w ; turn off blitter
move.w sr,old_sr ; save sr state
move.w #$2100,sr
stop #$2100
move.w #$2700,sr
; here do the usual border removal stuff (wait for right border, do 60/50
; switch
bset #7,$fffff8a3c.w ; turn on blitter
move.w old_sr,sr ; restore sr state
rte
The above code is called on line 198 (instead of 199) and waits for one extra scanline before removing the lower border?
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Another STE question
|
Bod/STAX
|
May,10.2012-20:28
|
Re: Another STE question
|
RA/pdx
|
May,11.2012-11:56
|
Re: Another STE question
|
Bod/STAX
|
May,11.2012-13:06
|
Re: Another STE question
|
Cyprian
|
May,11.2012-13:17
|
Re: Another STE question
|
RA/pdx
|
May,11.2012-21:04
|
Re: Another STE question
|
Bod/STAX
|
May,12.2012-12:41
|
Re: Another STE question
|
evil
|
May,12.2012-14:45
|
Re: Another STE question
|
Bod/STAX
|
May,12.2012-17:56
|
Re: Another STE question
|
evil
|
May,12.2012-18:24
|
Re: Another STE question
|
Bod/STAX
|
May,12.2012-21:20
|
Re: Another STE question
|
evil
|
May,13.2012-13:17
|
Re: Another STE question
|
Frank b
|
May,14.2012-20:16
|
Re: Another STE question
|
Cyprian
|
May,13.2012-18:22
|
Re: Another STE question
|
Patrice Mandin
|
May,13.2012-14:38
|
Re: Another STE question
|
Bod/STAX
|
May,15.2012-11:15
|
Re: Another STE question
|
evil
|
May,16.2012-09:17
|
Re: Another STE question
|
Bod/STAX
|
May,16.2012-21:30
|
Re: Another STE question
|
evil
|
May,16.2012-22:40
|
Re: Another STE question
|
Bod/STAX
|
May,17.2012-01:10
|
Re: Another STE question
|
Klaz
|
May,17.2012-14:08
|
Re: Another STE question
|
Bod/STAX
|
May,17.2012-21:35
|
Re: Another STE question
|
dan/pdx
|
May,18.2012-16:03
|
Re: Another STE question
|
Bod/STAX
|
May,18.2012-20:24
|
Re: Another STE question
|
Bod/STAX
|
May,19.2012-16:21
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|