Quantcast
Channel: Posts recentes
Viewing all articles
Browse latest Browse all 10

encoding disp32 in Amd64

$
0
0
inglês

I want to encode the following instruction using the displacement bytes instead of SIB byte. Is it possible?

mov rcx, ptr[1CE26F0h]

the following encoding should work
48 0B 0D F0 26 CE 01

however the assembler is interpreting it as

mov rcx,qword ptr [1CE26F7h] instead of
mov rcx, ptr[1CE26F0h]

where does this extra 7 come from. in other cases the interpretation of addresses is even different

00000000055C0251 48 8B 0D E8 26 C8 01 mov rcx,qword ptr [7242940h]

what am i doing wrong?


Viewing all articles
Browse latest Browse all 10