We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a assembly function declared in C as extern void *func(int *); and it is called from the C program as pstack=func(stack); where int *pstack; int *stack; //pointer to array In my assembly function, I understand that the argument is stored in R1-R3. What I need is to have the assembly function add in contents to the array passed into the function which is initially empty. The function will also return the address of the array which is filled. My doubt is: How do I have access to a location in the array and subsequently add in a value? I am new to assembly so please pardon my ignorance. Any assistance will be greatly appreciated. Thank you.
for ANY c and assebly case do the following: make a skeleton function in C and use the generated asembler (which is beatutifully commented) as a base for your assembler subroutine. Erik