When learning assembly language, XP system or earlier version of the default DOS command to enter the debug in the assembly instruction mode, and in Windows 7 and later, these functions seem to have been castrated, so today we will take you to deal with how to solve this problem?
First
First we need to configure the debug file for the computer, take win10 as an example, by default the system does not have debug related files, we need to configure
Download the file I have uploaded, link here
Download good and unzip, the result is as follows:
At this point we need to write down the current path, where our current path is D:\Debug
Second
We need to download a DOSBox, as defined on Wikipedia:
DOSBox is an emulator software that simulates an old-fashioned operating system under an IBM PC-compatible machine: MS-DOS, supports many IBM PC compatible graphics cards and sound cards, provides an execution environment for local DOS programs, Enable these programs to run correctly on most modern computers with different operating systems. DOSBox, especially designed to run early computer games, is written primarily in C + + and is free software released under the GNU General Public License license.
DOSBox can run MS-DOS software that does not work on modern computers, which are often incompatible with current mainstream hardware and operating systems. DOSBox in analog MS-DOS, there are also additional features available, including virtual disks, peer-to-peer networks, and video and analog images. [4] Some unofficial DOSBox variants, such as DOSBox SVN Daum and DOSBox SVN-LFN, provide more functionality, such as archiving, long file name support, and so on . When some game developers re-issue early DOS games, they also use DOSBox, which allows them to run on modern computers.
File I have uploaded to the local, download link here
After downloading the interface is as follows:
Third
We need to use the Mount command (to mount the hard disk or image, etc.) and mount the path of the DEBUG.EXE to the drive letter of the C drive, so that it is easy to call directly in the same directory
Then we just need to enter \ c to enter the current drive letter and use the debug command to start the DEBUG.EXE directly.
Windows 10 cannot use the debug solution