Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-27-2003, 07:03 AM   PM User | #1
jclark00001
New to the CF scene

 
Join Date: Mar 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jclark00001 is an unknown quantity at this point
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.
jclark00001 is offline   Reply With Quote
Old 03-27-2003, 03:50 PM   PM User | #2
djdante97
New Coder

 
Join Date: Dec 2002
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
djdante97 is an unknown quantity at this point
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
djdante97 is offline   Reply With Quote
Old 03-27-2003, 06:05 PM   PM User | #3
jclark00001
New to the CF scene

 
Join Date: Mar 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jclark00001 is an unknown quantity at this point
i figured it out finally, thanks though.
jclark00001 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:14 PM.


Advertisement
Log in to turn off these ads.