Page 1 of 1

Can anyone tell me what this is saying?

Posted: Wed May 22, 2024 7:15 pm
by GhostriderKami
So basically im trying to find out the pointer of health. It is multileveled pointers.

It goes like this: mov [rdi+rax*8],r9d
So i thought, okay cool it moves the value from R9 to RDI+RAX or something. Only problem is RAX is just some 0, and RDI is the current adress. So my question is what the *8 means.
If someone could help me, that would be nice.

Re: Can anyone tell me what this is saying?

Posted: Wed May 22, 2024 7:16 pm
by GhostriderKami
Also what the d means of r9d, by any chance.

Re: Can anyone tell me what this is saying?

Posted: Wed May 29, 2024 12:17 am
by Dread_Pony_Roberts
the *8 multiplies rax by 8. Since RAX=0, you are multiplying 8 by 0.
Just use RDI.

r9 is normally an 8 byte register (QWORD), but r9d uses only the first 4 bytes (DWORD)