[Coco] PIA keyboard input?

Paul T. Barton idezilla at yahoo.com
Mon Dec 8 11:24:00 EST 2003


--- James Dessart <dessart at istop.com> wrote:
> 
> On 7-Dec-03, at 5:09 PM, Robert Gault wrote:
> 
> > Whether you ROL/ROR or ST depends on whether
> you want to detect one 
> > specific key or any possible key press
> combination. Clearly if you 
> > want any key you must test all possible
> column/row combinations.
> 
> Well, what I wanted to do was to store a value
> into the PIA register, 
> through a loop.  I'm doing this in C, and to do
> a ROL you need to write 
> inline assembly.  So I was trying to store a
> constantly changing value 
> into the register through a C assignment.  That
> didn't work for me, for 
> some reason... I never got key presses... I'll
> retry it, though, maybe 
> I was doing it wrong the first time and didn't
> realize it.
> 
> James

James,
If you're doing "ROL ADDRESS"
then it depends on what has been read
back from that address (to roll). I don't
remember correctly, but it may be that
you can't read the output pins fron the
data port even tho you just wrote them.

Anyway, it depends on the reading from
the PIA port that your "0" gets rolled.

Paul


=====
IBO 1482969 WWG
Linux # 314458

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/



More information about the Coco mailing list