|
Atari coding BBS
Re: wtf! |
Posted by: evil
|
Dec,22.2012-12:00
|
Unless there is a specific reason, I'd steal the VBL vector all together to have the VBL for myself :)
Something like:
;init
move.l $70.w,save_vbl
move.l #vbl,$70.w
;exit
move.l save_vbl,$70.w
screen_swap:
move.l screen0,d0
move.l screen1,d1
move.l d0,screen1
move.l d1,screen0
lsr.w #8,d0
move.l d0,$ffff8200.w
move.w #$700,$ffff8240.w
.skip
bsr waitvbl
clr.w $ffff8240.w
rts
waitvbl:
tst.w vblcount
beq.s waitvbl
clr.w vblcount
rts
vbl:
addq.w #1,vblcount
rte
--
Anders Eriksson
ae@dhs.nu
|
[All messages in this thread] [Start new thread]
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.
|