It is obviously a newbie question, but I am trying to perform a simple loop that simply copies values to rsp-i * 8 where 1<=i<=j, such that j is the values stored in some register:
mov r9, r8
loop:
cmp r9, 0
je end_loop_push_list_args
mov rax, %SOME VALUE %
mov qword [rsp - 8 * r9], rax
sub r9, 1
end_loop:
Yet it seems like assembler is not happy with the minus, shouting that:
error: invalid effective address
Thoguh [rsp - 8 * r9] is the desired memory address I wish to override.
Thanks.