Last Updated: February 25, 2016
· superboum

How to run a MS-DOS program such as TASM

Prepare your Linux

We need to enable apps to write in first 64ko of memory. (It's now forbidden in recent Linux version. Should be relaunched at every reboot)

sudo sysctl -w vm.mmap_min_addr=0

Download TASM (or any MS-DOS app)

If you want to run TASM, you can download it here : tasm.zip

Just extract it where you want.

Install DOSEMU

sudo apt-get install dosemu
sudo yum install dosemu

Run your app

dosemu -dumb "./tasm/BIN/TASM.exe"

You can write a batch file if you want to pass some argument, such as run.bat :

tasm\BIN\TASM.EXE /l /zi lib\biblio.asm
tasm\BIN\TASM.exe /l /zi out.asm
tasm\BIN\TLINK.exe /v out out biblio.obj

And you can launch it with dosemu, and even redirect output to a file !

dosemu -dumb "./compile.bat" > out.log
Say Thanks
Filed Under