I created an asm folder in the e drive and put the masm folder in it.
Named the source code after writing it and put it in the masm folder.
After that the steps are:
1. double click to open dosbox
2. Type mount c e:\asm to open the asm folder, and press enter.
3. Type c: to load to the c disk, don't forget the semicolon, press enter.
4. Type cd masm, press enter.
5. Type dir, press enter to see the files in masm.
Since I've already compiled it, there are three files in the picture above: asm,obj,exe of test1.
Note that after modifying the source code, you have to recompile the file, the steps are as follows:
6. Input asm and press enter, if there is no special need, press enter at obj, lst, crf, as follows
You can see if your code has any errors from severe errors, and errors will be reported.
7. Type link to generate an exe file.
If you don't know whether obj, exe and other files have been generated during the process, just type dir.
8. Enter test1, press enter and then enter debug, press enter.
This can be followed by theDebug Command Collectionto perform the operation, a partial demonstration is shown below.
You can display, and g can directly make the program proceed to the specified step.
t indicates a step down, g can be executed directly to a step, and d can display the contents of the storage unit.
You can see that 22 11 44 33 66 44, and my test1, all I have to do is to add 1122h and 3344h, you can refer to the
test1 source code
Finally, press q to exit the debug operation of test1.
Note: debug is a debugging check process, to run directly, remove the debug directly file name.exe can be.