<?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>Other NXP ProductsのトピックRe: e_stwu/stwu problem</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148211#M404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Posting the reply even though it is late. Since it may help other people.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can use the below when the offset is more the 0x7f.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_stw r1, -0x84(r1)&lt;/P&gt;&lt;P&gt;e_add16i r1,r1, -0x84&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2018 18:06:59 GMT</pubDate>
    <dc:creator>pradeepmc</dc:creator>
    <dc:date>2018-06-17T18:06:59Z</dc:date>
    <item>
      <title>e_stwu/stwu problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148208#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have problem about stack on my 5604b system.&lt;/P&gt;&lt;P&gt;I want to create a section of stack frame﻿, the size of which is 0xA8 byte.&lt;/P&gt;&lt;P&gt;the code like this:&lt;/P&gt;&lt;P&gt;e_stwu r1, -0xA8 (r1) ﻿&lt;/P&gt;&lt;P&gt;but the result is r1=r1-0x58 , I don't know what happened.How can I reliaze this purpose?﻿﻿&lt;/P&gt;&lt;P&gt;Very grateful for your assistance﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 11:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148208#M401</guid>
      <dc:creator>Routh</dc:creator>
      <dc:date>2011-07-11T11:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: e_stwu/stwu problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148209#M402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to read up on the instruction you're trying to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documented in "Variable-Length Encoding (VLE) Programming Environments Manual,﻿" as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_stwu rS,D8(rA)﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are only 8 SIGNED bits available in the VLE version for the offset, so you're limited to -0x80 to 0x7f (0x70 or 0x7c for alignment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially I thoughy you could code it as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e_stwu r1, -0x70 (r1) ﻿&lt;/P&gt;&lt;P&gt;e_stwu r1, -0x38 (r1) ﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT that would end up with the wrong value stored on the stack, breaking the stack linkage, so it needs something a little smarter than that involving another temporary register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest you write a small C function with more than 0x80 bytes of function-local variables/storage, compile it and then disassemble it to see how the compiler solved this problem. Then copy what it did into your assembly code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 06:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148209#M402</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2011-07-13T06:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: e_stwu/stwu problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148210#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would have been great to see the code produced because I have run in to the same problem with the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;e_stwu&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;r1,-0x84(r1)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 20:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148210#M403</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2015-03-23T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: e_stwu/stwu problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148211#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Posting the reply even though it is late. Since it may help other people.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can use the below when the offset is more the 0x7f.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_stw r1, -0x84(r1)&lt;/P&gt;&lt;P&gt;e_add16i r1,r1, -0x84&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2018 18:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/e-stwu-stwu-problem/m-p/148211#M404</guid>
      <dc:creator>pradeepmc</dc:creator>
      <dc:date>2018-06-17T18:06:59Z</dc:date>
    </item>
  </channel>
</rss>

