Linux Debug (Dos Simulator, analog Debug)

Source: Internet
Author: User

Recently studied Wang Shuang that this "assembly language", but its experiments are Windows environment, need to use DOS.
But the most unixer, how to develop under Windows? So, use the tools under Linux.

Assembler MASM can be replaced with GCC or as or nasm
Linker Overlay linker can be replaced with LD
As for the debugger, if you are debugging a normal program, use GDB. But there is no debugger like the debug program in DOS that can directly manipulate the memory, because Linux is running in kernel protected mode, the user can not manipulate the memory freely. Maybe GdB can do the work in some way, but I didn't find the tutorial.

There is a way to solve this problem perfectly, which is to use this Dosemu simulator. It's better to use than a real DOS.
Installation under the Debian system

?
1 sudo apt-get installdosemu

Enter Dosemu under Terminal, run


Exit command is Exitemu


In addition, a workaround is to install the virtual machine and mount the FreeDOS system on the virtual machine.



One more thing ... The real program apes need to know how to assemble.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.