Re: lea with fs override




"JC" <spamtrap@xxxxxxxxxx> wrote in message
news:e2plll$lul$2@xxxxxxxxxxxxxxxxxxxx
I'd like to know, from userland, what base linear address my OS
(Windows XP) has set the FS segment (or GS, for that matter) to point
to.

I thought I could be clever, and do something like this (intel
syntax):

lea eax, fs:[0]

To figure this out. Unfortunately, LEA ignores segment overrides, and
I get back 0. Not helpful.

Is there another way to figure this out?

why not use
push fs
pop eax?

[jongware]


.



Relevant Pages

  • lea with fs override
    ... (Windows XP) ... has set the FS segment (or GS, for that matter) to point ... lea eax, fs: ...
    (comp.lang.asm.x86)
  • Re: addresses and integers
    ... the joys of the Intel segmented architecture! ... >segment / offset was part of the Intel hardware, ... the flat memory model made sense only when the Intel processors ...
    (comp.lang.c)
  • Re: [Clax86list] i8086 architectural fix
    ... It is true that Intel provided output ... physical bank of memory for each of the four segment registers, ... 64K was a *huge* amount of memory. ... segment selector value as part of the instruction encoding. ...
    (comp.lang.asm.x86)
  • Re: Intel HEX format: extended segment address
    ... Searching Google for Intel, CS and IP doesn't bring much ... where the segment value is multiplied by 16 (shifted ... left 4) and added to the offset. ... can't figure out how to treat the 4-byte value specifying CS:IP in ...
    (comp.arch.embedded)
  • Re: Intel HEX format: extended segment address
    ... segment format', how do CS and IP join to make the start ... I don't know about Intel Hex, but I know that there are no Intel ... The 80286 used the segment registers ... Another protected mode, somewhat different of the 286. ...
    (comp.arch.embedded)