0Fh BZ$TONE play a sound
Input X = duration
D = 1 / pitch
Output - none -
Description

Makes a beep of duration X milliseconds, and frequency given by the formula:

freqency in Hz = 921600 / ( 78 + 2 * D register )

X can range from 0 to $7FFF. X=0 produces the shotest possible note.

Note that BZ$TONE disables interrupts with an SEI.

Example
;       THIS IS THE CODE FOR BZ$BELL

        LDD     #56             ; FREQENCY = 4850 Hz
        LDX     #50             ; 50 ms
        OS      BZ$TONE
Errors - none -