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

Atari coding BBS
 
Re: FDC/HDC interrupt
Posted by: evil Feb,04.2005-08:33 

Sorry if I misunderstood, but if all you want to do it play music from Timer-C at 50Hz without messing up hdd/fdd it is really simple:

init:
move.l $114.w,save_c
move.l #my_c,$114.w

my_c:
subq.w #1,.hz50
bne.s .not50

move.w #4,.hz50
movem.l d0-a6,-(sp)
jsr playmusic
movem.l (sp)+,d0-a6

.not50:
move.l save_c,-(sp)
rts
.hz50: dc.w 4


exit:
move.l save_c,$114.w


That code will keep the OS at 200Hz and your music at 50.. Again sorry if I misunderstood the intention.

--
Anders Eriksson
ae@dhs.nu








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
FDC/HDC interrupt tobe Jan,31.2005-17:17
  Re: FDC/HDC interrupt earx Jan,31.2005-23:14
    Re: FDC/HDC interrupt tobe Feb,01.2005-02:29
  Re: FDC/HDC interrupt stghost Feb,01.2005-22:41
    Re: FDC/HDC interrupt tobe Feb,02.2005-05:50
      Re: FDC/HDC interrupt gwEm Feb,02.2005-16:15
        Re: FDC/HDC interrupt stghost Feb,02.2005-22:59
          Re: FDC/HDC interrupt tobe Feb,03.2005-18:16
            Re: FDC/HDC interrupt evil Feb,04.2005-08:33
              Re: FDC/HDC interrupt evil Feb,04.2005-09:29
                Re: FDC/HDC interrupt Simon Sunnyboy / Paradize Feb,04.2005-11:11
              Re: FDC/HDC interrupt tobe Feb,04.2005-19:32
                Re: FDC/HDC interrupt Patrice Mandin Feb,07.2005-00:27
                  Re: FDC/HDC interrupt tobe Feb,07.2005-13:44


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