Add KIM-1 functions to write to the 7-segment LED display and get

keypresses from the keypad.
Includes sample program illustrating how to use them.
Tested on real KIM-1 hardware.
This commit is contained in:
Jeff Tranter
2023-03-29 18:40:10 -04:00
parent d69117c0c1
commit 3a5fbd34da
5 changed files with 108 additions and 0 deletions

View File

@@ -56,5 +56,18 @@ int __fastcall__ loadt (unsigned char);
/* Write to tape */
int __fastcall__ dumpt (unsigned char, const void*, const void*);
/* Write to 7-segment LED display. Due to hardware limitations it only
** displays briefly, so must be called repeatedly to update the
** display.
**/
void __fastcall__ scandisplay(unsigned char left, unsigned char middle, unsigned char right);
/*
** Get a keypress from the keypad. Returns $00-$0F(0-F), $10(AD), $11(DA), $12(+),
** $13(GO), $14(PC) or $15 for no keypress.
**/
int __fastcall__ getkey();
/* End of sym1.h */
#endif