Hassaan Hasan
Hassaan Hasan

Reputation: 401

Assembly Language Operand Specifiers

I am new to learning assembly language and came across the following expressions:

I would be really grateful if someone could point me to a resource where I can understand these commands or explain them to me.

Thank you.

Upvotes: 0

Views: 1349

Answers (1)

Gabriel Vasconcelos
Gabriel Vasconcelos

Reputation: 606

This apparently refers to arithmetic addressing in x86 AT&T assembly.

The syntax is rather simple:

N(%reg1, %reg2, F)

This results in address = N + %reg1 + %reg2 * F. This can be used in multiple instructions for purposes like accessing data inside a struct (C compilers), etc.

For full reference, check this guide.

Upvotes: 3

Related Questions