Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    New Coder
    Join Date
    Dec 2002
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i figured it out finally, thanks though.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •