Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.cbm    |    Discussion about Commodore micros    |    53,866 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 52,879 of 53,866    |
|    Harry Potter to Computer Nerd Kev    |
|    Re: Power C/asm: returning a value from     |
|    14 Dec 19 05:03:35    |
      From: rose.joseph12@yahoo.com              On Friday, December 13, 2019 at 3:51:27 PM UTC-5, Computer Nerd Kev wrote:       > Given that nobody with specific knowledge of Power C has replied,       > I'll at least say that generally C compilers use the stack for       > passing values to/from functions. To return a value, you push the       > byte/s on inside the assembly part, then the compiler will pop them       > out when it's at the helm.       >        > This implementation is all specific to the compiler though, so you       > want to look at the Power C documentation for a real answer including       > the specifics of how the stack is used.        >        Computer Nerd Kev, I thank you for your response. The manual doesn't give any       information on using assembler with C. I have the information on linking C to       Assembler, but it doesn't give any information on returning a value from an       Assembler function.        :( I'm looking again in case there's something I missed.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca