[Coco] Coco3 arrow key peek from basic

rietveld rietveld rietveldh at hotmail.com
Fri Feb 9 23:16:43 EST 2018


I just solved my problem :

Up arrow.       If peek(341)=247
Down arrow if peek(342)=247
Left arrow.     If peek(343)=247
Right arrow. If peek(344)=247

I just polled the keyboard like u suggested and looked for a value change

Sent from my BlackBerry Passport Red Edition.
  Original Message
From: Robert Gault
Sent: Friday, February 9, 2018 9:50 PM
To: CoCoList for Color Computer Enthusiasts
Reply To: CoCoList for Color Computer Enthusiasts
Subject: Re: [Coco] Coco3 arrow key peek from basic


rietveld rietveld wrote:
> Hi
>
> I am still having trouble with PEEKING to check for an  Arrow key press on the coco3 from a BASIC program
>
>
> Any suggestions?
>
> Thanks
>
> Sent from my BlackBerry Passport Red Edition.
>

You should look in the Coco3 service manual on page 40 to see how the keyboard is laid out. You
should look at the Spectral Associates "Color Basic Unravelled", page B 79, where there is a
disassembly of "Read the Keyboard" at $A238.
You could also check the contents of $152-$159 to see what if any data is placed there after an
arrow is pressed.

Robert


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


More information about the Coco mailing list