Skip to content

Commit 7785ca5

Browse files
committed
Minimal implementation of keyboard int 0x10 and 0x11.
This closes dmsc#34.
1 parent c01cfa8 commit 7785ca5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/keyb.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,15 @@ void int16()
492492
unsigned ax = cpuGetAX();
493493
switch(ax >> 8)
494494
{
495-
case 0: // GET KEY
495+
case 0: // GET KEY
496+
case 0x10: // GET ENHANCED KEY:
497+
// TODO: implement differences between 00h / 10h
496498
ax = getch(0);
497499
cpuSetAX(ax);
498500
break;
499-
case 1: // GET KEY AVAILABLE
501+
case 1: // GET KEY AVAILABLE
502+
case 0x11: // CHECK FOR ENHANCED KEY AVAILABLE
503+
// TODO: implement differences between 01h / 11h
500504
ax = kbhit();
501505
cpuSetAX(ax);
502506
if(ax == 0)

0 commit comments

Comments
 (0)