Compiling an assembly for windows on Linux

This is a homework task, but it is very simple. The task consists of a working assembly file. I just need help to compile it on linux instead of windows. I am using Ubuntu. I installed mingw32. The task itself is to add some features, not compile them.

The file itself is here: here. For a large amount of code to include it and, in addition, the code works and is not interesting. So, does anyone know how I can compile this on Linux? If this code is compatible with linux, we do not need mingw32. But if it is not, we can use mingw32. The tools we plan to use on Windows are NASM, Alink, and td.

Hope someone got some input, I don't want to install windows for this simple task.

+4
source share
1 answer

This is a DOS build program. A call to INT 21 gives this. You can build it on Linux, but you cannot link it to the DOS executable and you cannot test it.

You need DOS.

Fortunately, you can install DOSBOX on Ubuntu and use this. https://help.ubuntu.com/community/DOSBox

Then you need to get NASM that runs on DOS and install it http://www.nasm.us/doc/nasmdoc1.html#section-1.3.1

Then get ALINK, which also supports DOS http://alink.sourceforge.net/

TD is tougher. If you can find a copy of TurboDebugger 1.0, then it will be launched in DOSBOX, but new versions will not. This was included in the free Borland C ++ compiler, but I do not know what version it was.

+5
source

All Articles