How to run assembler with DOSBox
This article mainly introduces how to use DOSBox to run the assembly, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Step 1: download the relevant files, which I will put in the link below:
Resource file
Extraction code: edtx
The second step is to put all the files in the masm folder into a specific folder, such as my f:\ masm
The third step is to install DOSBox, which contains a compressed package, just open the installation.
Step 4, double-click the DOSBox 0.74 Options.bat file under the DOSBox folder to open the dos-box.conf file, where you can configure the startup steps, as shown below:
Step 5, write the following code on the last line of the open conf file:
These two sentences will be run after you start DOSBox. The first line f:\ masm depends on your situation.
Step 6, open DOSBox, as follows:
As you can see, I ran the two lines of code we just wrote when I opened it. I've put a match.asm file in the masm folder in advance, which I can run directly here.
Step 7, type masm match.asm, as follows:
Then enter link match; here must pay attention to, must have a semicolon, otherwise can not be run.
Finally, enter match:
Finally, a Hello World is output, and it is done.
Thank you for reading this article carefully. I hope the article "how to use DOSBox to run the compilation" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!