Bilal K Asked: 2019-10-02 04:51:31 +0800 CST2019-10-02 04:51:31 +0800 CST 2019-10-02 04:51:31 +0800 CST How to use MASM for assembly language on Ubuntu? 772 How can I run the code of Masm on Ubuntu? I cannot use Windows as a virtual machine and neither can I use Nasm. 18.04 assembler 2 Answers Voted Saxtheowl 2019-10-02T05:04:24+08:002019-10-02T05:04:24+08:00 You can try using DOSBox with this guide. These instructions will run in all versions of Ubuntu. Download the all files in the masm folder from here. Install dosbox with the following command: sudo apt install dosbox Usage Write an masm program (e.g. myProgram) in any text editor and save it. Mount the location where the downloaded folder is available (e.g. ~/Downloads). To mount, launch dosbox and run this command in dosbox: mount c: ~/Downloads/masm Change the current working directory to c. c: Assemble the code. masm myProgram; Link the file. link myProgram; Run the executable. debug myProgram.exe Type -g and press Enter. Once the output is displayed, enter q to quit. Giorgos Saridakis 2020-07-01T09:47:06+08:002020-07-01T09:47:06+08:00 To use masm from your terminal, an easy way is with dosemu sudo apt install dosemu cd to where your MASM.EXE is located and execute dosemu MASM.EXE <code.asm> I've tried it with MASM 5.1, works perfectly. Hope I have helped :)
You can try using DOSBox with this guide. These instructions will run in all versions of Ubuntu.
Install dosbox with the following command:
Usage
Mount the location where the downloaded folder is available (e.g.
~/Downloads
). To mount, launch dosbox and run this command in dosbox:Change the current working directory to c.
Assemble the code.
Link the file.
Run the executable.
Type
-g
and press Enter.Once the output is displayed, enter
q
to quit.To use masm from your terminal, an easy way is with dosemu
cd to where your MASM.EXE is located and execute
I've tried it with MASM 5.1, works perfectly.
Hope I have helped :)