Add getchx() call to conio

This commit is contained in:
drmortalwombat 2023-04-02 13:51:53 +02:00
parent 4a2e417e31
commit 14ab294a47
2 changed files with 15 additions and 0 deletions

View File

@ -220,6 +220,17 @@ int getch(void)
}
}
int getchx(void)
{
__asm
{
jsr getpch
sta accu
lda #0
sta accu + 1
}
}
void putch(int c)
{
__asm {

View File

@ -25,6 +25,10 @@ int getche(void);
int getch(void);
// like getch but does not wait, returns zero if no
// key is pressed
int getchx(void);
void putch(int c);
void clrscr(void);