In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build x86 assembly DOS programming environment, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Introduction of related tools DOSBOX
This software simulates the DOS environment on PC. As you can see from the official website, there are Windows versions and Linux versions.
The latest windows version, DOSBox0.74-3-win32-installer.exe, I already put in the dial.
When installing, all can be done by default, and shortcuts will be created on the desktop
Assembler kit
With the DOS environment, you also need tools such as assembly, linking, and so on. The DOS tools.rar I gave packaged a series of tools.
My assembly kit is located in the root directory of the D disk called DOS
MASM.EXE: macro assembler, assemble source code, generate object file (.OBJ) LINK.EXE: link program, connect object file (.OBJ), library file (.Lib), link to executable file (.exe) CREF.EXE: cross-reference program, process symbol cross-reference file (.CRF), generate symbol cross-list file (.ref) LIB.EXE: library manager It is used to establish subroutine library DEBUG.EXE: debug program for code debugging TD.EXE: debugging project, for code debugging. It is recommended to use the code editing software HELLO.ASM under EDIT.EXE, EDIT.COM, EDLIN.COM:DOS environment HELLO.ASM: output HELLO WORLD code HELLO.EXE:HELLO WORLD compiled and generated executable file
The use of DOSBOX
After installation, as shown in the picture, two windows will pop up after opening, notice that either of these two will be turned off, and the program will exit immediately.
Next, mount your assembly kit directory to disk C, then enter disk C, and my assembly kit is placed in the DOS directory of disk D.
Note that all commands under DOSBOX are case-insensitive
Mount c d:\ dos
C:
At this time, the C disk is the DOS directory of my D disk. You can use the DIR command to view the directory structure.
Compilation
Edit the code with editing software on the computer
Then call MASM.EXE to assemble, in a simple way here (discussed in more content books)
MASM HELLO
Connect
The connection is also in a simple way
LINK HELLO
Execution
Just enter the program name directly on the command line
Debug
TD HELLO.EXE
These are all the contents of the article "how to build an x86 assembly DOS programming environment". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
The php memcached methods are: 1, set (); 1.
© 2024 shulou.com SLNews company. All rights reserved.