Originally Posted by
matsp
If you use a 16-bit compiler, chances are that it doesn't know about 386 instructions, such as XOR EAX, EAX.
It's been a long time [say 15+ years] since I used any Borland compiler, so I can't really say what it can and can't do.
Why do you want to do this in DOS? I'm guessing you are actually running Windows on the machine, so compiling this as a console app for Windows would relieve any problems of using 32-bit register instructions.
--
Mats