Search site Dead Hackers Society
Other BBSes »
 
 

Silly Venture 2019

Sommarhack 2019
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

Atari coding BBS
 
Re: ST Synclock system (again)
Posted by: evil Jun,18.2015-15:34 

A day late reply..

But, the Synclock demosys has no out-of-the-box feature for that kind of screens. It's made for synclock stuff foremost.

However, it's not that hard to add for a separate screen:

runtime_init:
move.l $120.w,savetb
move.l #mytb,$120.w
rts

vbl:
move.w #$2700,sr ;Stop all interrupts
clr.b $fffffa1b.w ;Timer B control (stop)
bset #0,$fffffa07.w ;Interrupt enable A (Timer B)
bset #0,$fffffa13.w ;Interrupt mask A (Timer B)
move.b #1,$fffffa21.w ;Timer B data (number of scanlines to next interrupt)
bclr #3,$fffffa17.w ;Automatic end of interrupt
move.b #8,$fffffa1b.w ;Timer B control (event mode (HBL))
move.w #$2300,sr
rts

mytb:
rte

runtime_exit:
clr.b $fffffa1b.w
move.l savetb,$120.w
rts



You probably don't need to restore $120 either, the demosys does that at exit.

If all fails, I can help you with an example in a couple of weeks, much stuff to do before that.

--
Anders Eriksson
ae@dhs.nu





[All messages in this thread]

Topic Posted by  Date 
ST Synclock system (again) BBM Jun,17.2015-10:33
  Re: ST Synclock system (again) evil Jun,18.2015-15:34
    Re: ST Synclock system (again) BBM Jun,18.2015-17:31


Message board and comments are now read-only

Due to abuse of the message boards we have put the entire site in read-only mode. That means you can't post new threads or reply to old messages and you can't add comments in VideoDB and PicDB.

Some messages have been erased from reading, but are stored in case they need to surface again.

After 17 years and 45000 messages we're shutting down due to one person.




© 1994-2019 Dead Hackers Society Contact: Anders Eriksson