Introduction to MASM (1) Installation and use of DOSBox

(1) Download and install DOSBox

The process from installation to use of DOSBox is still a bit cumbersome, so the editor directly attaches the free installation version. After downloading and decompressing, click the DOSBox.exe file and you can use it directly~
Download link: https://download.csdn.net/ download/qq_45975757/12912164

note

  • It is recommended to unzip to the root directory of D drive or E drive for easy use
  • After double-clicking DOSBox.exe, two windows will be generated, compile and run on a small window, but the large window cannot be closed, it can be minimized

(2) Use of DOSBox

  • Create virtual C drive

    mount c E:\DOSBox\asm //It must be the address of the asm folder

  • Enter virtual C drive

    c:

  • Edit the ".asm" file (you can also use other software to write the .asm file and put it in the asm folder)

    edit xxx.asm

  • Compile

    masm xxx.asm

  • Keep pressing Enter until the .obj file is generated
  • connection

    link xxx.obj

  • Press Enter until the .exe file is generated
  • run

    xxx.exe

(3)Tips

  • For simplicity, the suffix name can be ignored when compiling, connecting and running
  • DOSBox seems to be case-insensitive, so it is faster to use lowercase directly~

Guess you like

Origin blog.csdn.net/qq_45975757/article/details/108932242