Im having trouble understanding offsets in computer science.
SO far i know that the segment registers work along with the offset registers like this segment_register:Offset_register. Not sure if this is right but would this be the same 0:10 where 0 is the start of a segment of memory and 10 is the ending. So there would be 10 memory blocks allocated?
darknoobie
0
Newbie Poster
Recommended Answers
Jump to PostIm having trouble understanding offsets in computer science.
Segment and offset registers are used to represent memory addresses that are larger than your register size. Two registers are combined to create an address that you couldn't represent using just one register.
Various CPUs do this differently. If you're talking …
Jump to Posthey the segment register and offset register work this way. Lets say we have 7c0:2 the actual memory address will be 7c00+2 being 7c02. Another example is 0:7c00. The first part you shift to the left like i did 7c0 to 7c00 .but in our second case. When you shift …
All 5 Replies
gusano79
247
Posting Shark
markb536
0
Newbie Poster
dream.ahmadi
0
Newbie Poster
SamY
6
Junior Poster in Training
NotNull
23
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.