[Coco] PEEK for detecting CoCo arrow keys, etc.?

Arthur Flexser flexser at fiu.edu
Fri Dec 19 20:24:01 EST 2014


Oops, put a PRINT after the NEXT so that each 8-byte peek printout is on a
separate line.

Art

On Fri, Dec 19, 2014 at 8:20 PM, Arthur Flexser <flexser at fiu.edu> wrote:

> Further...
>
> To determine which peek values correspond to which arrow keys, run the
> following:
>
> 10 FOR I=&H152 TO &H159
> 20 PRINT PEEK(I);:NEXT:GOTO 10
>
> Then press each arrow key to see which byte changes, and what value it
> changes to, for that key.
>
> Art
>
> On Fri, Dec 19, 2014 at 12:00 PM, Allen Huffman <alsplace at pobox.com>
> wrote:
>
>> Does anyone remember the PEEK locations for detecting arrow keys
>> (preferably one that works from 1980 CoCo 1 to CoCo 3)?
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>
>


More information about the Coco mailing list