Skip to content

How does out work ? #13

@stuaxo

Description

@stuaxo

I'm trying to get some DOS mouse code working, but can't work out how out() works from the README, I'm translating this code, that outputs into bx (button pressed), cx, dx (x, y)

void get_mouse_info(int *xposint *yposint *click)
{
    in.x.ax = 3;
    int86(MOUSE_INTERRUPT&in&out);
   *click = out.x.bx;
   *xpos = out.x.cx;
   *ypos = out.x.dx;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions