SUBSCRIBE TO NEWS
Subscription by Email - news

Discard subscription
112

Assembler

2012
12
Dec.
Admin
viewsViews: 2076         commentsComments: 7

Assembler

To calculate the address are used two components of address - offset and section. When for addressing are used address of variables or tags, then it is known, in which segment they are defined. Address of the segment begining and offset of a variable with this name or labels in relation to the segment beginning are used to calculate the address. This offset is called executive address, and it is calculated according to the addressing mode. byteIn this case, required value should be loaded to the appropriate register segment, otherwise the data will be transferred completely into another memory cells. When it needed, in command there is an ability to override the appropriate segment. It is possible to use two methods for this purpose:

  1. You can use pseudo operator "assume", in order to specify which segment will be used by default when accessing memory.
  2. Directly in the command, you can specify: relative to which segment offset will be applied.

bitThe physical address - is a twenty-bits unsigned integer, which identifies the location of byte in memory space. The logical address - is a two sixteen-bits unsigned integers: base (source) address of the segment and the effective address (offset), which determines the distance in bytes from the addressed cell to the beginning of the segment.

bytePrograms operates logical address, not physical, hence, when accessing memory for data writing and reading or instruction fetch - occurs hardware transformation of the logical address into a physical address. Microprocessor expands segmental register by four zero bits and adds the offset, which is obtained when calculating the address. Rules of transformation depend on the operating mode of the microprocessor - protected and real. AssemblerIn normal mode of the microprocessor operation - logical address is directly served into the address bus, in other words - coincides with the physical address. In protected mode of the microprocessor operation, the rules for obtaining the logical addresses are different from the real mode, and when applying page memory organization - logical addresses may significantly differ from physical addresses.

Author:
RATE PUBLICATION
0   (votes: 0)
Comments (7)
Kenshi Posted
27 Decemb. 12
avatar
Good job. Real quality advice!
Wendey Posted
29 Decemb. 12
avatar
Assambler is very complex language. Thanks for good tips.
Pauletta Posted
02 January 13
avatar
Fanny pictures.
Big Daddy Posted
07 January 13
avatar
Funny photoes!
Budy Posted
08 January 13
avatar
Great!!!
Cristofer Posted
08 January 13
avatar
I did nice job!
Malcolm Posted
07 April 13
avatar
Supperrrrrrrrr!!!!!!!!!!!!!!!

To add comment, please, authorize.
Authorize using Yandex Google Mail.ru Twitter