TIP: Click on subject to list as thread! ANSI
echo: cbm
to: K-GUIDE
from: HARRY POTTER
date: 2019-12-14 17:03:00
subject: Re: Power C/asm: returnin

On Saturday, December 14, 2019 at 7:17:21 PM UTC-5, K-Guide wrote:
> Using the stack makes alot of since for the return value of the assembler
> function.  In the case of no parameter, I suspect you can just call the
routine
> via a function pointer in C. Set that to the address of your assembler
routine
> and call the function.  Please bear in mind I am not a Power C programmer,
but
> am just guessing based on other platforms I program on.  If you have
parameters
> there could be some documemtation on how to pass them via registers in the
> compiler docs.  Compilers seem to have their own style for stuff like that. 
It
> also could be that you just need to drop the values into a certain memory
> location as the assember routine expects it there.
>
> Not sure I follow you about the too few parameters.
>
The docs. I have reveal that the return value seems to overwrite the last
parameter passed to the function.  That's why I am worried about the too few
parameters.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.