Posted By
TMR on 2004-05-30 06:43:45
| Keyboard handling
i used to use Mike Dailly's references but since plus4.org isn't there any more does anyone have a good source of notes on reading the keyboard...?
|
|
Posted By
Csabo on 2004-05-30 09:34:02
| Re: Keyboard handling
The keyboard matrix is also here: [ link ]. A basic routine that would wait until space is pressed would be:
* LDA #$7F ; Check column 7 STA $FD30 ; Keyboard Matrix STA $FF08 ; Keyboard Latch LDA $FF08 ; Keyboard Latch AND #$10 ; Query keyboard for "Space" BNE *
|
|
Posted By
Ulysses777 on 2004-05-30 10:11:49
| Re: Keyboard handling
I managed to recover the original document from archive.org, you can take a look here.
|
|
Posted By
Crown on 2004-05-30 11:05:43
| Re: Keyboard handling
You do not have to write to $ff08 if you only conserned by reading the keyboard. Just write a#$ff to $ff08 once, which would disable reading the joystick state at all, but you don't really need that either..
|
|
Posted By
TMR on 2004-05-30 14:14:27
| Re: Keyboard handling
Ta very much both! [Grabs the source for the recovered page! =-] Is there not a definitive C16 and Plus/4 programmers reference online? i'd host a mirror on OSG if anyone fancies doing...?
|
|
Posted By
JamesC on 2004-05-30 15:12:11
| Re: Keyboard handling
TMR, the problem isn't hosting space... the problem is getting everything typed in or scanned in, so that it can be presented.
I have been working on it off and on for a while, I'm sure Csabo has been for this site as well.
|
|
Posted By
Crown on 2004-05-30 15:45:24
| Re: Keyboard handling
http://www.nic.funet.fi/pub/cbm/plus4/programming/manual/index.html
This is two separate document, I scanned a few years ago which found its way trough Mike and other people to the Funet archive.
|
|