Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
wtf! damog Dec,20.2012-21:20
  Re: wtf! damog Dec,20.2012-21:41
    Re: wtf! twat Dec,20.2012-22:07
  Re: wtf! Defjam Dec,21.2012-03:28
    Re: wtf! Damo Dec,21.2012-13:38
  Re: wtf! evil Dec,22.2012-12:00
    Re: wtf! Damog Dec,22.2012-15:39


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson