View Full Version : need sparc assembly help
03-27-2003, 08:03 AM
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.
03-27-2003, 04:50 PM
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.
03-27-2003, 07:05 PM
i figured it out finally, thanks though.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.