3. Registers (memory access)

Source: Internet
Author: User
Tags sub command

Register (memory access)

Only the title is displayed. The second chapter is the interaction between registers and constants (numbers).

Storage of words in memory
Assume that the read byte (stream) is read from left to right.
The processing of words is from and to the left.
It's because they are different.

DS and offset address: Common Address acquisition method (CS: IP this is for the program)
Similar to general-purpose registers, but do not use move ds. 1: If there are too few instructions, it is also true (jmp does not save 2 instructions, but N more commands ), it should be related to the instruction process (intel instruction manual, my first response is actually to use a flexible method to modify or use a general method to modify... there are too many Chinese literature in primary school and automatic sublimation)
A similar problem is that direct memory in memory is not allowed (ignore the existence of cpu)

Mov, add, sub Command simple (soy sauce) command

Data Segment: ds indicates a data segment relative to the cs program execution segment.

Stack: advanced post-release structure
I understand that the array structure is inherent, and the stack is a simple structure that processes the array slightly.

CPU provides a stack mechanism (in words)
1. push pop command
2. SS: SP

Stack Segment: SS...

3. Registers (memory access)

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.