Author Topic: dos to linux  (Read 12975 times)


  • Guest
dos to linux
« on: March 29, 2007, 09:06:46 AM »

i have source code in c this code it run under dos 16 bit
can i used nasm to conver this code to run under linux.

thank you


  • Guest
Re: dos to linux
« Reply #1 on: March 29, 2007, 10:18:44 AM »
Well, no, Nasm isn't going to do any "conversion" for you. In theory, the C code should compile and run on Linux. In practice, it probably isn't 100% "standard" C, and probably contains "extensions" that won't work on Linux.

However, we can almost certainly write a program in Nasmese that will do the same thing as the 16-bit dos C code. If it's a fairly small program, this should be easy. If it's a large program... "tedious", at least. Depends... graphics, in particular, is a PITA in Linux...

What's this code do, anyway?