So I am looking at some riscv assembly code and basically trying to figure out what's wrong. However, I stumbled upon the following code:
80001a2: 00000097 auipc ra,0x0
80001a6: 62e080e7 jalr 1582(ra) # 80007d0 <memset>
I think I understand the auipc, namely adding the pc to my return address, however I don't understand the jalr here.
When I look it up, it says the usage is:
jalr xD, xL (offset)
I am guessing in my code the (ra) is the offset, but what is 1582 here? The source? the destination? both?