Commit c0b2b9e1 authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard

Stubbed INT 15 function 84h.

parent 06057e7a
......@@ -12,12 +12,36 @@ DEFAULT_DEBUG_CHANNEL(int)
/**********************************************************************
* INT_Int15Handler
*
* Handler for int 15h (old cassette interrupt).
* Handler for int 15h
*/
void WINAPI INT_Int15Handler( CONTEXT86 *context )
{
switch(AH_reg(context))
{
case 0x84: /* read joystick information */
FIXME("Read joystick information not implemented\n");
/* FIXME: report status as if no game port exists */
switch(DX_reg(context))
{
case 0x0: /* read joystick switches */
AL_reg(context) = 0x0; /* all switches open */
break;
case 0x1: /* read joystick position */
AX_reg(context) = 0x0;
BX_reg(context) = 0x0;
CX_reg(context) = 0x0;
DX_reg(context) = 0x0;
break;
default:
INT_BARF( context, 0x15 );
break;
}
RESET_CFLAG(context);
break;
case 0x88: /* get size of memory above 1 M */
AX_reg(context) = 64; /* FIXME: are 64K ok? */
RESET_CFLAG(context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment