home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   CBM      Commodore Computer Conference      4,328 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,911 of 4,328   
   Computer Nerd Kev to Harry Potter   
   Re: Power C/asm: returning a value from    
   13 Dec 19 20:51:23   
   
   INTL 3:770/1 3:770/3   
   REPLYADDR not@telling.you.invalid   
   REPLYTO 3:770/3.0 UUCP   
   MSGID:  f27fd1b6   
   REPLY:  464cc7ab   
   PID: SoupGate-Win32 v1.05   
   Harry Potter  wrote:   
   > I have Power C and am wondering: I have information on interfacing   
   > C with assembler, but it doesn't show how to return a value from   
   > an assembler function. How do I do that?   
      
   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.   
      
   --   
   __          __   
   #_ < |\| |< _#   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 1/123 15/0 2 19/36 34/999 90/1 104/115 106/201 114/224 702   
   SEEN-BY: 114/705 706 116/18 123/140 128/2 73 187 253 153/7715 218/700   
   SEEN-BY: 222/2 226/16 227/114 229/101 275 354 426 1014 230/150 152   
   SEEN-BY: 240/1120 5832 249/1 206 307 317 400 250/1 261/38 100 266/512   
   SEEN-BY: 267/155 275/100 282/103 1056 291/1 111 298/25 305/1 3 310/2   
   SEEN-BY: 312/2 317/3 320/119 219 322/757 340/400 342/13 200 396/45   
   SEEN-BY: 640/1321 712/848 801/161 189 2320/105 3005/1 3634/12 5020/1042   
   PATH: 770/3 1 712/848 261/38 15/0 317/3 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca