[net.micro.atari16] XBIOS dosound function

tether@mitlns ("STEPHEN_TETHER") (08/05/86)

In-Reply-To: <244@inuxj.UUCP> from Ron Wolenty

According to Abacus' "ST Internals", dosound takes a single longword
argument which is a pointer to an array of sound commands:

Command byte (hex)      Function
------------------      ---------------------------------------------------
00-0F                   Load the sound-chip register 00-0F. Followed by
                        the byte to load.

80                      Load temporary register (kept by XBIOS). Followed
                        by the byte to load.

81                      Loop. Followed by a sound-chip register number,
                        a step value (signed byte), and a final value
                        (signed byte). Executes as follows:
                             for temporary := temporary to final by step
                                  do register := temporary.

82-FF                   Delay/halt. Followed by a byte giving the number
                        of system timer ticks to pause, 0 to halt sound
                        processing. A system timer tick is usually 20ms.

Steve Tether
TETHER@MITLNS.MIT.EDU
TETHER@MITLNS.BITNET
satether on BIX

------