> I am going back through my archived DOS programs
MS-DOS uses the 8086 16bit 'real-mode' instruction set. MinGW/GCC is a 32 bit compiler. A lot of what you may have used in-line assembler for in DOS will not work in protected mode. Generally there is a better way to do it using OS services.
Moreover, in-line assembler is not a standardised part of the C or C++ language, so each compiler implements it differently - another reason to avoid it!
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am going back through my archived DOS programs. I sometimes save a program because of an idea it gave me. Every couple of years I try to expunge un-needed programs.
Checkout www.c.neatinfo.com
Thanks for the help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can devc do inline assembly?
Thanks jz
Yes. The syntax is somewhat arcane.
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
But most reasons people have for resorting to in-line assembly are spurious, so I wonder why you want to do it?
Clifford
> I am going back through my archived DOS programs
MS-DOS uses the 8086 16bit 'real-mode' instruction set. MinGW/GCC is a 32 bit compiler. A lot of what you may have used in-line assembler for in DOS will not work in protected mode. Generally there is a better way to do it using OS services.
Moreover, in-line assembler is not a standardised part of the C or C++ language, so each compiler implements it differently - another reason to avoid it!
Clifford
The link you posted is broken (at this time at least)
...I wonder why you want to do it?
I am going back through my archived DOS programs. I sometimes save a program because of an idea it gave me. Every couple of years I try to expunge un-needed programs.
Checkout www.c.neatinfo.com
Thanks for the help