News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

fs/gs

Started by JK, July 24, 2020, 06:42:47 AM

Previous topic - Next topic

JK

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

nidud

#1
deleted

JK

Ok - thanks, indeed this solves the problem!

Quotefs is assumed to error ...

just to understand the background - why?