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
On Thu, 18 Aug 2005, Markella Krisztian wrote:
> Hi,
> I've a code that is work with TurboC3.11 but I can not port to DevC++.
> I want to program the mouse in assembly.
> The TurboC code is here
> <http://web.axelero.hu/makihu/mouse/useMouseInTurboC.c>.
> My try is here <http://web.axelero.hu/makihu/mouse/myTryInDevCpp.c> with
> the DevC++.
> Krisztian
>
>
|