Offset?
Moderator:Moderators
Re: Offset?
Depends. Can you give the context in which you found it? (code example or so)
There is more than 1 meaning which I can think of, depending on context.
~Andrew
There is more than 1 meaning which I can think of, depending on context.
~Andrew

Re: Offset?
"Offset" says the value is relative.
If you have point A at 20px horizontal, and point B at 30px, then offset of B (to A) would be 10px.
Thats the general idea.
// Jarvix
If you have point A at 20px horizontal, and point B at 30px, then offset of B (to A) would be 10px.
Thats the general idea.
// Jarvix
Jinix. Kernel programming is a black art that should be avoided if at all possible.
Re: Offset?
Hi Andrew:Andyhhp wrote:Depends. Can you give the context in which you found it? (code example or so)
There is more than 1 meaning which I can think of, depending on context.
~Andrew
I got it from this page:
http://www.brokenthorn.com/Resources/OSDev4.html
We can convert the above to the absolute address 0x7C00 by using our formula:
base address = base address * segment size (16) + offset
07C0:0000 = 07C0 * 16 (decimal) + 0
= 07C00 + 0 = 0x7C00
Can you explain this in details, I really want to learn. Thanks!
Re: Offset?
Is it junk memory?Jarvix wrote:"Offset" says the value is relative.
If you have point A at 20px horizontal, and point B at 30px, then offset of B (to A) would be 10px.
Thats the general idea.
// Jarvix
Re: Offset?
Real mode (16bit mode) addressing works using the Segment:Offset method.Can you explain this in detail
Both segment and offset are two numbers.
In this case, offset is just a name for a number. Im not sure how else to describe it.
In the case that you gave, the segment value was 0x7C0 and the offset value was 0
That means that the linear address pointed to by the segment:offset pair was 0x7C00 because of the rule for converting a segment:offset pair to a linear address.
~Andrew

Re: Offset?
So that means between 0 and 0x7c00 is the offset segmentation.Andyhhp wrote:Real mode (16bit mode) addressing works using the Segment:Offset method.Can you explain this in detail
Both segment and offset are two numbers.
In this case, offset is just a name for a number. Im not sure how else to describe it.
In the case that you gave, the segment value was 0x7C0 and the offset value was 0
That means that the linear address pointed to by the segment:offset pair was 0x7C00 because of the rule for converting a segment:offset pair to a linear address.
~Andrew
Or am I wrong??
Re: Offset?
Nope.
I have no idea where you got "offset segmentation" from but its really confusing matters.
The Offset is a number, and the Segment is a number. 'Offset' and 'Segment' are just names for numbers, in the same way you might use x or y in algebra.
~Andrew
I have no idea where you got "offset segmentation" from but its really confusing matters.
The Offset is a number, and the Segment is a number. 'Offset' and 'Segment' are just names for numbers, in the same way you might use x or y in algebra.
~Andrew

Re: Offset?
Please do NOT feel offended, but can you give me more details?Andyhhp wrote:Nope.
I have no idea where you got "offset segmentation" from but its really confusing matters.
The Offset is a number, and the Segment is a number. 'Offset' and 'Segment' are just names for numbers, in the same way you might use x or y in algebra.
~Andrew
Where is Mike?
Re: Offset?
Why are you asking such question?Andyhhp wrote:Is english your first language?
Re: Offset?
Because your questions are not making logical sense.
You asked "what does offset mean" and had two answers. One for the question "what does the word offset mean" and one for the question "what does the offset in this specific case mean".
The fact that you are still asking the same origininal question probably means that english is not your first language
You asked "what does offset mean" and had two answers. One for the question "what does the word offset mean" and one for the question "what does the offset in this specific case mean".
The fact that you are still asking the same origininal question probably means that english is not your first language

Re: Offset?
No no, the fact is that I want more in-depth details. That's one of the reasonsAndyhhp wrote:Because your questions are not making logical sense.
You asked "what does offset mean" and had two answers. One for the question "what does the word offset mean" and one for the question "what does the offset in this specific case mean".
The fact that you are still asking the same origininal question probably means that english is not your first language
why I asked.