[Coco] Checking for the presence of the S/SC

Rietveld Rietveld rietveldh at hotmail.com
Fri Jun 2 15:22:55 EDT 2017


Thank you

I didn't like how the program wasted valuable time sending text to my speech sub routine even when no cart was present

Sent from my BlackBerry 10 smartphone.
  Original Message
From: tim lindner
Sent: Friday, June 2, 2017 3:15 PM
To: CoCoList for Color Computer Enthusiasts
Reply To: CoCoList for Color Computer Enthusiasts
Subject: Re: [Coco] Checking for the presence of the S/SC


On Fri, Jun 2, 2017 at 11:58 AM, Rietveld Rietveld
<rietveldh at hotmail.com> wrote:
> Hi. Is there a way for a program to PEEK for the presence of the SS/C. I know a lot of older games
> would ask (prompt) you if you were using the speech sound cart.  ‎I would like the program to auto
> detect it


Write 1 then 0 to $ff7d. This will reset the S/SC.

Immediately start reading $ff7e:

If it goes from $7f to $ff, the S/SC is present.
If it stays $ff then there is no S/SC.


--
--
tim lindner

"Proper User Policy apparently means Simon Says."

--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list