![]() |
need sparc assembly help
im trying to get a sparc function to read in 3 character arrays from a C-main function call. the 3 arguments in the call are all character arrays. id like to know how to take the first argument, read in the first character, then read in the first character from the second argument and compare them, etc... my problem is in the actual passing of the argument into a register, if anyone can help id be very appreciative.
|
don't pass by registers, only use registers for returning values. push them onto the stack and use SP to access them. you'll have to find out what order they come in (whether sp+4 is the first arg or last arg).
some of the details here might not be correct, but they're close i think. Dan |
i figured it out finally, thanks though.
|
| All times are GMT +1. The time now is 11:57 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.