[stella] Keyboard controllers

Subject: [stella] Keyboard controllers
From: jvmatthe@xxxxxxxxxxxx
Date: Thu, 24 Oct 1996 23:25:31 -0400 (EDT)
Does anyone have a simple program that uses that keyboard controllers
that I could look at?  I am trying to figure out how to read them.
Here's what I have been doing so far: (roughly, and I don't know that
this is right)

Set Port A to output
Put a #$10 in SwchA (checks row 1)
Wait a while (400 usec)
Get values of Inpt0, Input1, Input4
Draw Screen
Repeat with #$20, #$40, and #$80 to check rows 2, 3, 4 respectively.

If this isn't right, let me know.  If you have some easy to understand
code, let me know.  Thanks!

matt

===========================================================================
 |||  John V. Matthews, III                             | PO Box 50355
 |||  NCSU Mathematics Graduate Student                 | Raleigh, NC 27650 
/ | \ http://www4.ncsu.edu/~jvmatthe/www/               | (919) 515 7324
===========================================================================



Current Thread