Compile the second experiment

Source: Internet
Author: User

Task 1:

(1)Use the e command to modify ~ 0021: F Data

 

(2) Use the command to enter the command

 

(3) single-step debugging with each t command

(4) result of instruction execution in the book

 

 

Task 2:

(1) run the command entered by command a to modify the value from ~ 2000: F value

 

(2) One-Step debugging command and content in-2000: F

Initialize the stack and set it ~ 2000: 000f is the stack space and the top of the initialization Stack

Stack base address: 2000:0010; stack top address: 2000:0010

Analysis changes: the stack content changes after each statement call. It is assumed that some data is stored in the stack during each call.

LExperiment Summary

 This experiment demonstrates how to use DEBUG and debug assembly commands, as well as the storage of Multi-byte data in the memory. Push and pop correspond to the function stack memory space of the stack and the function stack of the stack respectively. CS: IP points are treated as code, and the use of commands such as mov, add, and sub is also learned. MoV commands change the content in registers or memory, add commands add and memory or register content, sub commands subtract the content in memory or register. When using the stack, we should pay attention to whether it is out of scope.

 

Compile the second experiment

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.