<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>calling C-function from within assembler?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/13742/calling-c-function-from-within-assembler</link><description> I want to call a C-function from an assembler-file. 
 
for example: 
 
void asc0_SendInt(void) interrupt S0TINT using rbank_s0 
{
 ...my code
}
 
 
My Assemblerroutine looks like: 
 
$MOD167 
$SEGMENTED

VEC_SEG EQU 2 ;Segment
VEC_OFF EQU 0000H ;Offset</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: calling C-function from within assembler?</title><link>https://community.arm.com/thread/84018?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2000 08:27:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b83051ca-ed46-46d9-8622-df062dd6eac5</guid><dc:creator>Keil Support</dc:creator><description>&lt;p&gt;This is a test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: calling C-function from within assembler?</title><link>https://community.arm.com/thread/53418?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2000 11:36:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4a2342d8-f605-4a06-9249-af2fd560cde5</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;... or use the CODE option to add the assembler listing to your normal compiler listfile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: calling C-function from within assembler?</title><link>https://community.arm.com/thread/36987?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2000 08:41:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dae2c9d1-ee9a-428c-abc4-ee40c246b590</guid><dc:creator>Doug  Moore</dc:creator><description>&lt;p&gt;Cheat.  Turn on the option to generate a .src module and see how the compiler does it in the .src file.  Then mimic that.  The advanced programming section in the C166 compiler manual describes the resgister requirements for C and ASM parameter passing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>