Jump to content

Offset and Base location

- - - - -

  • Please log in to reply
2 replies to this topic

#1
AKMafia001

AKMafia001

    Programmer

  • Members
  • PipPipPipPip
  • 119 posts
Would some one describe the offset and base location in detail. To me segment is the memory chunk, base location is the starting address of the memory chunk and offsets is the displacement from the base to the end of the chunk.
If possible provide some links also.

Thanks!
Mafia
I think i'm able to write a code for printing "Hello, World!". Proud of that!

#2
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,252 posts
  • Location:C:\Countries\US
Real-address mode, in
<segment value>:<offset> 
physical address= segment value * 16 + offset 


#3
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
One thing to understand about segmented addressing is that there are many different segment/offset combinations that can access one memory address. For example, segment 0x0000 offset 0x0010 is the same as segment 0x0001 offset 0x0000. The question I can't answer is WHY it works like this :P
Latinamne loqueris?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users