Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 0x0(r15) mean?

Tags:

assembly

I'm pretty avanced with assembler, but I don't know this, an I really can't find anything about this:

cmp   #0x2f44, 0x0(r15)

what does 0x0(r15) mean?

Thank you in advance!

like image 487
dahans Avatar asked Jan 18 '14 18:01

dahans


People also ask

What is al and ah register?

The least significant byte of AX can be used as a single 8-bit register called AL, while the most significant byte of AX can be used as a single 8-bit register called AH. These names refer to the same physical register. When a two-byte quantity is placed into DX, the update affects the value of DH, DL, and EDX.

What is AX in Assembly language?

AX is the primary accumulator; it is used in input/output and most arithmetic instructions. For example, in multiplication operation, one operand is stored in EAX or AX or AL register according to the size of the operand.


1 Answers

This is a relative addressing which means that offset 0x0 from value in r15 register.

Suppose you have a instruction movq 8(%r15), %rax which means that move the value stored at address contained in r15 + offset 8 into register rax.

A negative no will show negative offset.

like image 128
abhi Avatar answered Sep 18 '22 20:09

abhi