[Strengthen] knowledge Chapter IV Instruction 4.2 Instruction Addressing Modes

Before we talk about addressing that way, we first look to supplement the knowledge of two points, it is a type of the operand, it is a way of storing data. So we've talked about before, type of operation. So now we look at the type of operand.

So what types of operands it? There are four common types. Respectively, address, numbers, characters, and the number of logic. So what address is it? It actually address it can also be seen as a data. Among such a branch instruction, then the jump instruction operand, it is an address. Then the absolute address it, we can be seen as an unsigned integer. Then the relative address, we can be seen as a sign of the number. But in general, it is the address of an unsigned integer. So what we have to address is calculated in the following way of addressing them in detail to introduce. So digital, digital is the most common type. It has a fixed point, floating point decimal numbers as well, those of us who do, have done a detailed explanation in the previous chapter in. We have also talked about the character, the character of it, it can also be seen as a common data types, in general, is widely represented in ASCII code. Then the number of logical, arithmetic is another computer. Among the logic operation, the n combinations of 0 and 1 of it, as it is not a digital arithmetic, it is seen as a logical number. Then this is four common types of operands.

Then we look at, in which the computer is how to store these data. Ah we assume this is a number, 1,2,3,4,5,6,7,8, H. So that is the beginning of the previous 1, 2, those too are its high part, but these are 8,7 lower part of it.

Then store these numbers it in two ways, the first way it is like this, 1,2,3,4,5,6,7,8, then this is a way to do that is to say our word is our address high byte address. So this is the way big-endian mode. So it means that we put the word address as a line on a word, then what its address is 0, if it is, then the byte is 0, 1, So it's this line that it is the word address address is 0. Then the second line if it is byte-addressable word is 4,5,6,7, So it's this word address is 4. So if it is a word address high-byte address is stored like this, 1,2,3,4,5,6,7,8, it is big-endian mode. If this is 7,8,5,6,3,4,1,2 it for storage, which is the word address our low-byte address, then this is the way the small end. So these two methods do before we have already mentioned, presumably everyone is familiar with.

Let us look, which is modeled like a memory.

 

 

Guess you like

Origin www.cnblogs.com/ZHONGZHENHUA/p/11484253.html