Programming with machine instructions and assembly instructions (1)

Source: Internet
Author: User

Experimental results

Go to DOS, run debug

Use the R command to view and change the contents of the CPU register.

Modify the contents of the register AX with the R command

Modify the contents of CS and IP with the r command

Use the D command to view the contents of memory 1000:0

See what's at 1000:9

List the contents of the Debug preset address

View the contents of the 1000:0~1000:9 unit

View content in the same physical address with three different segment addresses and offset addresses

Modify the contents of 10 units starting from 1000:0 with the e command

Modify the contents of 3 units starting from 1000:10 with the e command

Write characters to memory with the e command

Write a string to memory with the e command

Write machine code to memory with e command

Use the U command to translate the contents of a memory unit into a assembly instruction display

Use the T command to execute the instruction that Cs:ip points to

Continue execution with the T command

Write instructions to a memory unit starting with 1000:0 with a command

Enter a command from a pre-set address

From the experiment I learned to use debug to view, modify the basic operation of the segment address.

Roughly learned the instructions to modify IP and CS

Programming with machine instructions and assembly instructions (1)

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.