Discussion Forum

mix asm & c

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
vandana pawar
Posted
24-Nov-2008 05:35 GMT
Toolset
C51
New! mix asm & c

hi,
i have many function in asm now i start write coading in 'c' & i want to include this routien in my 'c' coading how can i include this routien in 'c'

Read-Only
Author
Andy Neil
Posted
24-Nov-2008 07:23 GMT
Toolset
C51
New! RE: mix asm & c

You can call assembler routines from 'C', and vice-versa - see: http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm

If your existing ASM functions haven't been written to be compatible with C51, you could write a suitable "interface" layer - probably in assembler...

Read-Only
Author
erik malund
Posted
24-Nov-2008 13:34 GMT
Toolset
C51
New! the easy way

write a 'skeleton' function in C and use the generated assembler as a template.

Erik

Next Thread | Thread List | Previous Thread Start a Thread | Settings