Assembler

7
4590

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: World of translation
RATE PUBLICATION
5 (votes: 0)

Комментарии:

  • avatar
    Kenshi - 27.12.2012, 10:23
    Good job. Real quality advice!
  • avatar
    Wendey - 29.12.2012, 09:43
    Assambler is very complex language. Thanks for good tips.
  • avatar
    Pauletta - 2.01.2013, 20:40
    Fanny pictures.
  • avatar
    Big Daddy - 7.01.2013, 09:00
    Funny photoes!
  • avatar
    Budy - 8.01.2013, 12:32
    Great!!!
  • avatar
    Cristofer - 8.01.2013, 22:50
    I did nice job!
  • avatar
    Malcolm - 7.04.2013, 21:54
    Supperrrrrrrrr!!!!!!!!!!!!!!!
Go UP