CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Computer Programming (http://www.codingforums.com/forumdisplay.php?f=21)
-   -   need sparc assembly help (http://www.codingforums.com/showthread.php?t=17119)

jclark00001 03-27-2003 07:03 AM

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.

djdante97 03-27-2003 03: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.

Dan

jclark00001 03-27-2003 06:05 PM

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.