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

Atari coding BBS
 
wtf!
Posted by: damog Dec,20.2012-21:20 

hello folks!

inspired by the amazing releases from SILLIVENTURE! i thought i'd crack out the old Devpac :)

i wish i could say it's all flooding back to me but alas, it isnt :D


there's one thing i'm really confused about I was hoping someone could help with.. I dug out some startup code (courtesy of Mr Pink) and i'm fucked if I can work out why the good old 'cpu time left' palette trick isn't working.

Instead of giving me a solid block of colour indicating how much of the vbl I have left, i'm getting an effect that suggests the code isn't waiting for a vbl.

https://dl.dropbox.com/u/3791755/vbl.png

the way it checks for the vbl is such:

;-------------------------------------------------------------------------;

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
move.w #0,$ffff8240.w
rts

;-------------------------------------------------------------------------;

waitvbl:
move.l d0,-(a7)

move.l $468.w,d0
.wait:
cmp.w $468.w,d0
beq.s .wait

move.l (a7)+,d0
rts

;-----------------------

my logic dictates that $468 -must- be changing, otherwise the waitloop would hang, I even tried installing a custom vbl that changed $468, but alas, the same result.

this is BASIC (well not literally, i can do this in STOS!!!) so I'm flummoxed!!

can anyone explain why it's not working, please :D

xx
damo











[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