2006-03-16 08:48 PM
assembly code for a function with passing param and return value
2006-03-15 11:54 PM
Hi,
Micro used: ST7FL35 Compiler and Assembler used: Cosmic Memory Model used: MODMM Does anyone have a sample assembly code for writing a function with 2 passing parameters and with a return value and made as global so that it could be called in one other file ???? Thanks, Suganya [ This message was edited by: Suganya on 16-03-2006 14:46 ]2006-03-16 12:58 AM
2006-03-16 01:44 AM
Luca,
As suggested i wrote a sample C code and tried using the asm code in my assembly file but i get the following error in it. symbol _Check_Sample_Assembly$L not defined (Debug\timer.o Debug\cstartup.o ) I have attached my project, kindly let me know how to write a assembly routine to pass arguments when the memory model is modmm ???? Regards, Suganya. [ This message was edited by: Suganya on 16-03-2006 15:17 ] ________________ Attachments : Luca.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Ct&d=%2Fa%2F0X0000000bWZ%2FNf5lfaZ03PldZnGliXqaNQC2dsjwAWTv6xBGNFcvS18&asPdf=false2006-03-16 05:39 PM
Can anyone give a help on this !
Thanks in advance. Suganya2006-03-16 08:48 PM
I have analysed that shared sections ($L) are not getting created for the assembly code.
Any clue??? -Suganya