Add getchx() call to conio
This commit is contained in:
parent
4a2e417e31
commit
14ab294a47
|
@ -220,6 +220,17 @@ int getch(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int getchx(void)
|
||||||
|
{
|
||||||
|
__asm
|
||||||
|
{
|
||||||
|
jsr getpch
|
||||||
|
sta accu
|
||||||
|
lda #0
|
||||||
|
sta accu + 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void putch(int c)
|
void putch(int c)
|
||||||
{
|
{
|
||||||
__asm {
|
__asm {
|
||||||
|
|
|
@ -25,6 +25,10 @@ int getche(void);
|
||||||
|
|
||||||
int getch(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 putch(int c);
|
||||||
|
|
||||||
void clrscr(void);
|
void clrscr(void);
|
||||||
|
|
Loading…
Reference in New Issue