I'm learning Assembly and I've got a question about array addressing. Suppose rsi
holds the address of an array and I want to get the first byte of data starting at this address. Would the following two pieces of code do the job? If so, what is the difference between them, if any? Thank you in advance.
(AT&T syntax)
Version 1
movb (%rsi), %al
Version 2
movb (, %rsi, 1), %al