The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: JK on July 24, 2020, 06:42:47 AM

Title: fs/gs
Post by: JK on July 24, 2020, 06:42:47 AM
While in 64 bit this works:


  mov qword ptr rax, gs:[...] 
  mov gs:[...], rax 


this 32 bit code doesn´t:


  mov dword ptr eax, fs:[...]
  mov fs:[...], eax


What am i doing wrong? I want to read/write data from/to the TEB.


JK
Title: Re: fs/gs
Post by: nidud on July 24, 2020, 07:06:44 AM
deleted
Title: Re: fs/gs
Post by: JK on July 24, 2020, 08:04:48 PM
Ok - thanks, indeed this solves the problem!

Quotefs is assumed to error ...

just to understand the background - why?