Mail Archives: djgpp/1998/02/08/06:48:29
On Fri, 6 Feb 1998, Petr Stehlik wrote:
> this is a routine written by myself some time ago for Atari800 emulator. It
> works fine (if a joystick is connected ;-).
>
> int joystick0(int *x, int *y)
This code uses CLI/STI instructions. I would like to point out that
some DPMI servers (notably, Windows) trap these instructions and
emulate them with code that takes eons to execute. And since CLI
doesn't really disable interrupts in a multitasking environment, I
would advise to remove these instruction in the DJGPP version.
- Raw text -