Kenner 2 page 4 July 1977 Co Filmer, translated to english Hans Otten, 2021
A parallel ASCII keyboard is a nice addition to the KIM-1.
Connect to the PIA A of the KIM-1 on the Application connector.
Some keyboards may require a -12 V power supply.
The address 1700 now shows the ASCII keyboard code of (the last) key pressed. The high bit (PB7) is the strobe signal, the other 7 bits the ASCII code.
A program should poll the strobe bit, if activated wait for the strobe bit to be deactivated, and then read the key and return.
Testing for keypressed such as a break test means checking the strobe bit, if activated stop processing, etc..
Code fragments by Hans Otten
PAD * $1700 ; BREAKKEY IN BIT 7 ; SUBROUTINE GET CHARACTER ; GETCH BIT PAD ; PROCEDURE GETCHARACTER ( CHAR ) BPL GETCH ; WAIT FOR STROBE GWAIT BIT PAD ; WAIT FOR END OF STROBE BMI GWAIT ; LDA PAD ; GET CHARACTER RTS ; END GETCHARACTER ; ; example of break test ; SYN BIT PAD ; REPEAT BPL GOON ; WHILE NOT keypressed JMP MONRET ; GOON continue processing
See also:
Kilobaud
Tiny Basic a mini language for your micro What's that Digital GRoup Really Doing The remarkab...
Tiny Basic a mini language for your micro What's that Digital GRoup Really Doing The remarkab...
Dr Dobbs
Volume 1 1976 A 6502 Disassembler from Apple Baum Wozniak A string output routine for the 6502 ...
Volume 1 1976 A 6502 Disassembler from Apple Baum Wozniak A string output routine for the 6502 ...
Elcomp
Es lebe der KIM-1 Experimente fuer Anfaenger mit KIM-1 Schrottknuppel ...
Es lebe der KIM-1 Experimente fuer Anfaenger mit KIM-1 Schrottknuppel ...
Interface Age
Building a Digital Group System A KIM-1 Sidereal clock Advert KIM meets S100, KIMSI 6502 ...
Building a Digital Group System A KIM-1 Sidereal clock Advert KIM meets S100, KIMSI 6502 ...