<?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 LPC1769 assembly language: STR to memory reserved using .word in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1769-assembly-language-STR-to-memory-reserved-using-word/m-p/572629#M21081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cktham on Thu Jun 09 07:03:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The GNU assembler version of DCD used in ARM assembler to reserve a word of memory is .word&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LDR R0, =var1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STR R1, [R0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which is is supposed to write the contents of R1 into the var1 memory location, I get an ImpreciseErr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRed Support (Rob) had tried to help me in one of the threads, but I couldn't post a response to him for some reason, so I'm opening this query to the community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope someone can provide some pointers on how to store to a memory location, which is supposed to be something quite elementary in an assembly language program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:26:04 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:26:04Z</dc:date>
    <item>
      <title>LPC1769 assembly language: STR to memory reserved using .word</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1769-assembly-language-STR-to-memory-reserved-using-word/m-p/572629#M21081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cktham on Thu Jun 09 07:03:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The GNU assembler version of DCD used in ARM assembler to reserve a word of memory is .word&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LDR R0, =var1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STR R1, [R0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which is is supposed to write the contents of R1 into the var1 memory location, I get an ImpreciseErr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRed Support (Rob) had tried to help me in one of the threads, but I couldn't post a response to him for some reason, so I'm opening this query to the community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope someone can provide some pointers on how to store to a memory location, which is supposed to be something quite elementary in an assembly language program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1769-assembly-language-STR-to-memory-reserved-using-word/m-p/572629#M21081</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:26:04Z</dc:date>
    </item>
  </channel>
</rss>

