I'm fairly new to assembly & i'm having trouble iterating through an array; i.e. increasing the index as I loop.
I'm working under x86-64 in Linux using NASM.
There doesn't seem to be much documentation on the 64-bit architecture.
Also, the book i'm using seems to code all the examples in C, then disassembles the code into AT&T syntax assembly. Doesn't really help.
Description of my code:
After taking in the first input & moving it into slot 0 of the array, I ask if there's more input.
If there is, I move into the loop.
I think each slot in the array is 8 bits, so I tried this to increment the index:
mov qword [r14+8], rsi
However, I then realized this will always input into slot 1 of the array as I loop....
How can I increase the index of the array as I loop so that my data is not overwritten?
Thanks a lot, any help is appreciated.