hjr-Assembly: Instruction operation address and data

Source: Internet
Author: User

Statement, the following are blind guessing, must be one-sided, there may be wrong

Assembly language is made up of many instructions.

Instructions for manipulating addresses and data

The instruction consists of the opcode and the operand, the opcode is the operation you are going to take, the operand is the data or address you want to manipulate.

Instructions for manipulating data are addressed

Addressing is the reading or fetching of data from the found address.

The opcode can be subtraction, transmit, etc.

Data is the number we always say

About address and data can see this blog HJR Tutorial-assembly (i): Address and data

Below is a brief introduction to the following address and data

The address refers to the logical address after the segmentation or paging, the physical address is the memory of the actual memory, memory is how much we say g, how many trillion

1 trillion equals 1024kb,1kb equals 1024 bytes, and a byte is represented by a 8-bit 2 binary, so a byte can represent 2 powers (8), where 256 to 0 is the data

The physical address is from 11 straight back row, the logical address is the total length of the physical address is divided into many segments, such as 8 segments, each segment has 10 lengths, then addressing is 8*n+ (1 to 10), followed by 1-10 is the offset address

The address of the storage data, 8-bit microcontroller address is the unit of bytes, because one byte equals 8 bits, so each address can only hold data between 0-256

For example, if you have 1kb of memory, then the address has a length of 1024 bytes, the physical address is 1 to 1024, the logical address is divided into the way (n + offset address (1 to the length of each paragraph))

Then look at a few of the microcontroller, you know each address can store how much data range. Each address can have only one data, so the number of bits determines the range of the data

Now the relationship between the address and the data is clear.

The Assembly has to do is to manipulate the data in the address by the instruction, move, calculate, etc.

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.