<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic code question about AN3748 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/code-question-about-AN3748/m-p/194563#M8560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the main file there is this definition of a function pointer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void&amp;nbsp; (* const _UserEntry[])() @0x000011E4=&amp;nbsp;&amp;nbsp; &amp;nbsp;// modificato @0x000011C0=&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; 0x4E714EF9,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //asm NOP(0x4E71), asm JMP(0x4EF9)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; _startup,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the code inside do?&lt;/P&gt;&lt;P&gt;If i look at the memory with the debugger, I see that at address 0x000011C0 there is&lt;/P&gt;&lt;P&gt;4E 71 4E F9 00 00 12 EC&lt;/P&gt;&lt;P&gt;I have never seen this syntax before but I assume that 0x4E714EF9 copy this value in the memory. What's the point of saving this value in memory? There is a comment with a jump. Does it jump to this value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where 00 00 12 EC come from? Is it the address of _startup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be happy if anyone could explain me what this code does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;CA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Apr 2010 20:40:32 GMT</pubDate>
    <dc:creator>carloAT</dc:creator>
    <dc:date>2010-04-22T20:40:32Z</dc:date>
    <item>
      <title>code question about AN3748</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/code-question-about-AN3748/m-p/194563#M8560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the main file there is this definition of a function pointer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void&amp;nbsp; (* const _UserEntry[])() @0x000011E4=&amp;nbsp;&amp;nbsp; &amp;nbsp;// modificato @0x000011C0=&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; 0x4E714EF9,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //asm NOP(0x4E71), asm JMP(0x4EF9)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; _startup,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the code inside do?&lt;/P&gt;&lt;P&gt;If i look at the memory with the debugger, I see that at address 0x000011C0 there is&lt;/P&gt;&lt;P&gt;4E 71 4E F9 00 00 12 EC&lt;/P&gt;&lt;P&gt;I have never seen this syntax before but I assume that 0x4E714EF9 copy this value in the memory. What's the point of saving this value in memory? There is a comment with a jump. Does it jump to this value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where 00 00 12 EC come from? Is it the address of _startup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be happy if anyone could explain me what this code does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;CA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 20:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/code-question-about-AN3748/m-p/194563#M8560</guid>
      <dc:creator>carloAT</dc:creator>
      <dc:date>2010-04-22T20:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: code question about AN3748</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/code-question-about-AN3748/m-p/194564#M8561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;up :smileyhappy:&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 20:09:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/code-question-about-AN3748/m-p/194564#M8561</guid>
      <dc:creator>carloAT</dc:creator>
      <dc:date>2010-05-04T20:09:22Z</dc:date>
    </item>
  </channel>
</rss>

