Compile common debug commands

Source: Internet
Author: User

Common debug commands
1,
-Q: quit running.ProgramCommand

2,
-U disassembly display command
-U Cs: 100 disassembly from the specified position
-U 100 is equivalent to u Cs: 100. CS is the default segment register.
-U Cs: 100 130 disassembly of specified range
-U Cs: 100 L10 disassembly of the specified length

3,
-D command for displaying memory unit content
-D ds: 10 displays the content of the storage unit in the memory zone starting from the specified position.
-D Cs; 100 display the memory zone of the current segment

4,
-G executes the program from the current Cs: IP address location
-G = cs: 100 entertain programs from a specified location
-G = 100 is equivalent to G = cs: 100. CS is the default value.
-G 200 is executed from the current position and set 200 to a breakpoint
-G = 0 10 20 run from CS: 0, 10, 20 is two breakpoints

5,
-T execute a command from the current Cs: IP Address
-T 3: Execute 3 commands from the current Cs: IP Address
-T = cs: 10 execute one command from CS: 10
-T = 10 is equivalent to T = cs: 10. CS is the default value.

6,
-P,-P3,-P = cs: 10,-P = 10 is similar to the T command, but the subroutine is treated as a command in the subroutine

Stop after execution

7,
-A Assembly command. Input Assembly statements from the specified address and compile them into machines.CodeSequential Storage

In the specified memory
-A is compiled from the current Cs: IP Address
-A 10,-a CS: 10 start from CS: 10

8,
-I read the content of the specified port
-I 21 read and display the content of port 21h

9,
-O writes data to the specified port
-O 21 00 writes 00 h to port 21h

10,
-? Display Debug Command Format

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.