[Coco] Speech and Sound cart manual
tim lindner
tlindner at ix.netcom.com
Thu Apr 15 12:30:13 EDT 2004
Kevin Diggs <kevdig at hypersurf.com> wrote:
> Hi,
>
> Should the lines that set the sound mux also be fixed? Here is
> my version of the "tone" sample (see line 60 for what I am talking
> about):
POKE X+1, PEEK(X+1) AND &H77
POKE X+3, PEEK(X+3) OR 8
POKE X+&H23, PEEK(X+&H23) OR 8
Nothing to fix here. The standard order of operations is what you want.
The problem with the S/SC code is that the standard order of operations
is not what we wanted.
X AND Y = Z
The equal sign has a higher precidence than the AND operator. So it was
like saying:
X AND (Y = Z)
So I had to force it using parenthesis:
(X and Y) = Z
--
tim lindner
tlindner at ix.netcom.com Bright
More information about the Coco
mailing list