Re: [Dev-C++] mouse programming in DOS with assemly
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Markella K. <chr...@fr...> - 2005-08-18 21:25:08
|
I have to do it in this way for the school. Can I use DOS interrupts to solve this problem? Krisztian ps.: This <http://www.ana.sudani.co.uk/Programming/mouse.htm> solution would be great too. >Sorry, the MinGW compiler used by Dev-C++ can't do MS-DOS applications. It >generates 32-bit Windows applications (command line, graphical or >servies). > >The djgpp port of gcc can be used to write 32-bit extended MS-DOS >applications but thease are also using protected mode where the >application can't directly access the hardware. > >For using 16-bit assembler access of the hardware you shouold continue >with old TurboC or similar. > >By the way - why do you want to access the mouse using assembler? The >mouse is a slow input device, so there are no speed issues requiring >assembler instructions. Optimized assember can result in a smaller memory >footprint but the world have since quite some time moved away from the >640kB restrictions of MS-DOS and the mouse handling isn't directly a large >part of the memory requirements for a 32-bit application. > >/Per W > > > > |