Jump to content

Offset (computer science)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 87.224.81.158 (talk) at 14:42, 22 February 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, an 'odd offset would cause a program check (unless the base register itself also contained an odd address) - since instructions had to be aligned on half-word boundaries to execute without a program or hardware interrupt

The previous example describes an indirect way to address to a memory location in the format of segment:offset. For example, assume we want to refer to memory location 0xF867. One way this can be accomplished is by first defining a segment with beginning address 0xF000, and then defining an offset of 0x0867. Further, we are also allowed to shift the hexadecimal segment to reach the final absolute memory address. One thing to note here is that we can reach our final absolute address in many ways.