<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックInline Assembly</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124568#M119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can someone give me a link to a document that describe deeply how to use the Inline Assembly ?&lt;/DIV&gt;&lt;DIV&gt;I want to access to c array in assembler ,assembler array ...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2006 14:21:21 GMT</pubDate>
    <dc:creator>UDP</dc:creator>
    <dc:date>2006-07-20T14:21:21Z</dc:date>
    <item>
      <title>Inline Assembly</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124568#M119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can someone give me a link to a document that describe deeply how to use the Inline Assembly ?&lt;/DIV&gt;&lt;DIV&gt;I want to access to c array in assembler ,assembler array ...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 14:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124568#M119</guid>
      <dc:creator>UDP</dc:creator>
      <dc:date>2006-07-20T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inline Assembly</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124569#M120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I assume you are using CodeWarrior for Coldfire V6.2. Am I right?&lt;/P&gt;&lt;P&gt;Did you look at the manual {Install}\Help\PDF\Targeting_ColdFire.pdf.&amp;nbsp;Chapter 8 Inline Assembly describes the Inline assembly syntax and usage.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 16:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124569#M120</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-07-20T16:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inline Assembly</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124570#M121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I looked as this document it's similar to the help file.&lt;/DIV&gt;&lt;DIV&gt;I am looking how to use an arrays ,structures in Inline Assembly.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 16:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124570#M121</guid>
      <dc:creator>UDP</dc:creator>
      <dc:date>2006-07-20T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inline Assembly</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124571#M122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; For structure fields just use the&amp;nbsp;&amp;nbsp;standard ANSI C notation&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;struct&amp;nbsp; {&lt;BR /&gt;long int a;&lt;BR /&gt;} mystruct;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; move.l mystruct.a,D0&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;For arrays the ANSI C notation (tab[2]) is not working. Mainly because array access often cannot be mapped to one single assembly instruction.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here it really depends what you want to do.&lt;/DIV&gt;&lt;DIV&gt;Suppose you have an array of int and want to access element number 3 in the array, you can write:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; move.l D0,tab+(3*sizeof(int));&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Now if you have a table of structure and want to access one field within an element of&amp;nbsp;the structure you can for instance load A0 with the address of the desired element in the structure and then access the appropriate field using the struct construct (See manual referred in my last email).&lt;/DIV&gt;&lt;DIV&gt;For instance to access field x in fourth array element use the following:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; lea tab, A0&lt;BR /&gt;&amp;nbsp; adda.l #(4*sizeof(StrType)),A0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; move.l D0,struct(StrType.x)(A0)&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;StrType being defined as follows:&lt;/DIV&gt;&lt;DIV&gt;typedef struct StrType&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;int x;&lt;BR /&gt;}StrType;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Anyway encoding of array access depends on what you intend to do.&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 23:35:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Inline-Assembly/m-p/124571#M122</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-07-20T23:35:51Z</dc:date>
    </item>
  </channel>
</rss>

