Assembly Design Lab 2

Source: Internet
Author: User

Experiment 2 programming with machine instructions and assembly instructions

1. experiment content 1: use DEBUG to write the following program segments into the memory and execute them one by one. Fill in the blanks based on the actual running conditions of the commands.

(1) Before using the command to input the command for debugging, use the e command ~ Change 8 consecutive 8 bytes to 30 h, 31 H, 32 h, 33 H, 34 h, 35 h, 36 h, 37 h, and run the D command again.

(2) input the program section in the book

(3) Fill in the content in the book

(4) use the R and T commands to check whether they are consistent with those written one by one

The debugging result is consistent with that written.

(When executing the T command, mov SP and 0100 are not displayed, are they skipped or not displayed ?)

2. experiment content 2: carefully observe the experiment process in the figure and analyze the cause ~ 2000: will the content in F change?

(1) write the code to debug for debugging.

I think the reason is that the operation in the stack is interrupted. (Not very clear)

3. Experiment Summary

This experiment showed me the stack definition and related operations. Understand the stack operation mechanism. In the stack operations provided by the 8086cpu, the segment address and offset address at the top of the stack are stored in the SS and sp. There is also the execution process of push and pop, although there are still many things that I don't understand, I hope to be able to solve it in later learning.

Assembly Design Lab 2

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.