<?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>assembly interrupt</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/36925/assembly-interrupt</link><description> Hello how can i make this routine in assembly or how can i remove the PUSH an POP instructions for this routine run faster 
 
C code: 
 
void timer0 (void) interrupt 1
{
	samples[samplecount]=P3;
	samplecount++;
}
 
 
Assembly generated: 
 
 timer0:</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/134765?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 10:10:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2920f6a2-3397-4cf7-844c-a35d947c4360</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;AGAIN:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;If you remove the push and pop from the ISR your program will fly to kingdom come.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
why do you keep trying to find a way to do it.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/123274?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 09:37:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6fa93391-c95f-40e0-ac5d-b049019001fd</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;i have looked theC51 manual but i can&amp;#39;t figure out the how make the interrupt in assembly&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Of course not - the &lt;b&gt;C&lt;/b&gt;51 manual is about &lt;b&gt;&amp;#39;C&amp;#39;&lt;/b&gt; !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/123273?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 09:36:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ff9073b8-c81b-4dca-859e-3a7c8aca1bb8</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;a href="http://www.8052.com/tutflow.phtml#Interrupts" target="_blank"&gt;http://www.8052.com/tutflow.phtml#Interrupts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/112129?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 09:31:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c48bf829-9ca1-4b34-9392-618656209d3a</guid><dc:creator>Hugo  Reis</dc:creator><description>&lt;p&gt;i have looked theC51 manual but i can&amp;#39;t figure out the how make the interrupt in assembly were can find some &amp;quot;dummies&amp;quot; manual about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/98149?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 07:46:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9655d375-efa2-465f-afd5-6352596f5eac</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;void timer0 (void) interrupt 1 &lt;b&gt;using 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
sure, you can &amp;quot;remove the push and pop&amp;quot; instead and see your program fly to kingdom come.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/74093?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 07:40:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:69505a39-9b02-4933-90e3-5cbc2fa172c1</guid><dc:creator>8_bit_ninja x</dc:creator><description>&lt;p&gt;Mannually remove it and assemble the generated SRC file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assembly interrupt</title><link>https://community.arm.com/thread/46170?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2006 07:32:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8cb54680-d1bd-4a5e-9478-e2321a64b69d</guid><dc:creator>Karl Hamsher</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;Hello how can i make this routine in assembly ...&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Use the compiler option to generate assembly source code.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;... how can i remove the PUSH an POP instructions for this routine run faster&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Use the small memory model.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>