• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Assembly language question

mss242

Senior member
Take the following snippet:

movl -4(%ebp), %eax

Does this move the value found at -4(%ebp) into %eax or does it move the address of -4(%ebp) into %eax?
 
In Intel syntax, the associativity is from left to right, so it's eax into ebp. In AT&T syntax, it's left to right, so in your case it's ebp into eax.
 
Originally posted by: Descartes
In Intel syntax, the associativity is from left to right, so it's eax into ebp. In AT&T syntax, it's left to right, so in your case it's ebp into eax.

Yeah, but does it move the value found at the address -4(%ebp) or the address itself into %eax?
 
Back
Top