Merge pull request #179 from root42/pet-kbhit

kbhit variant for CBM PET
This commit is contained in:
drmortalwombat 2024-12-18 12:02:31 +01:00 committed by GitHub
commit 9fc8315f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,11 +268,19 @@ char getpch(void)
char kbhit(void) char kbhit(void)
{ {
#if defined(__CBMPET__)
return __asm
{
lda $9e
sta accu
};
#else
return __asm return __asm
{ {
lda $c6 lda $c6
sta accu sta accu
}; };
#endif
} }
char getche(void) char getche(void)