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

Atari coding BBS
 
Re: YM registers, interrupts
Posted by: gwem Jan,24.2006-13:49 

keep bits 6 and 7 of the YM mixer register (7) high. dont touch registers E and F.. and disable interrupts around your YM setting.

you can pre calculate your YM registers and then set them all in one go with the interrupts disabled. or, set YM address and data registers in the same instr with movep.w or move.l

the problem is if you set the YM address with a move.b instruction, and then later have another move.b instruction to set the data, you can get a system 200hz or vbl instruction which changes the YM address register in between your two move.b.... of course means when the interrupt terminates, you risk trashing the YM register set by the system, turning off Falcom IDE, disk light, internal speaker etc etc etc

alternatively you can disable system 200hz or vbl... but if you want to be system friendly thats disrecommened of course.







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

Topic Posted by  Date 
YM registers, interrupts Peter Jan,24.2006-09:39
  Re: YM registers, interrupts Cyclone / X-Troll Jan,24.2006-10:58
    Re: YM registers, interrupts GT Turbo Jan,24.2006-11:40
      Re: YM registers, interrupts Peter Jan,24.2006-11:47
        Re: YM registers, interrupts evil Jan,24.2006-14:12
          Re: YM registers, interrupts Peter Jan,24.2006-15:24
    Re: YM registers, interrupts Peter Jan,24.2006-11:52
      Re: YM registers, interrupts gwem Jan,24.2006-13:49
        Re: YM registers, interrupts Peter Jan,24.2006-15:22
        Re: YM registers, interrupts Peter Jan,24.2006-15:31
          Re: YM registers, interrupts gwem Jan,24.2006-15:51
            Re: YM registers, interrupts Peter Jan,24.2006-17:03
      Re: YM registers, interrupts Leonard Jan,24.2006-17:08
        Re: YM registers, interrupts Peter Jan,25.2006-21:57


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