<?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>CodeWarrior for MCU中的主题 Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149718#M3513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably somthing simple, but have been having troubles finding where in the help files this is explained. (Also, I have this setup working fine in C, but for some reason cannot get it working in asm). (Note, this is just an example to show my problem, not what im actually doing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These two lines were added to the PRM in the correct areas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;added "PhoneNumbers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGEflash_PhoneNumbers =&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8000 TO 0x81FF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PhoneNumbers &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; PAGEflash_PhoneNumbers;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is in another file added the data for PhoneNumbers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PhoneNumbers: SECTION&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;;Factory default phone numbers&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;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc '000000',0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_start_msg&amp;nbsp;&amp;nbsp; dc 'Watchguard Alarms&amp;nbsp; ',0&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In main.asm added&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldhx &amp;nbsp; PhoneNumbers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;do somthing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldhx&amp;nbsp; (PhoneNumbers+$10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;do somthing else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both of these lines cause " &lt;/SPAN&gt;&lt;A target="_blank"&gt;A1414: Cannot set fixup to constant "&lt;BR /&gt;I have tried many things, XDEF, __seg_start etc, things that work in C dont work in asm... Can someone please point me to a solution as to how to address somthing defined in the PRM... Is there a reason&lt;BR /&gt;&lt;BR /&gt;(note, in C "__SEG_START_PhoneNumbers" works fine)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Carl&lt;BR /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2007 13:25:19 GMT</pubDate>
    <dc:creator>CarlFST60L_3rd</dc:creator>
    <dc:date>2007-09-25T13:25:19Z</dc:date>
    <item>
      <title>Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149718#M3513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably somthing simple, but have been having troubles finding where in the help files this is explained. (Also, I have this setup working fine in C, but for some reason cannot get it working in asm). (Note, this is just an example to show my problem, not what im actually doing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These two lines were added to the PRM in the correct areas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;added "PhoneNumbers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGEflash_PhoneNumbers =&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8000 TO 0x81FF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PhoneNumbers &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; PAGEflash_PhoneNumbers;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is in another file added the data for PhoneNumbers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PhoneNumbers: SECTION&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;;Factory default phone numbers&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;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_phone5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc '000000',0,0,0,0,0,0,0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def_start_msg&amp;nbsp;&amp;nbsp; dc 'Watchguard Alarms&amp;nbsp; ',0&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In main.asm added&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldhx &amp;nbsp; PhoneNumbers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;do somthing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldhx&amp;nbsp; (PhoneNumbers+$10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;do somthing else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;*------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both of these lines cause " &lt;/SPAN&gt;&lt;A target="_blank"&gt;A1414: Cannot set fixup to constant "&lt;BR /&gt;I have tried many things, XDEF, __seg_start etc, things that work in C dont work in asm... Can someone please point me to a solution as to how to address somthing defined in the PRM... Is there a reason&lt;BR /&gt;&lt;BR /&gt;(note, in C "__SEG_START_PhoneNumbers" works fine)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Carl&lt;BR /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 13:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149718#M3513</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2007-09-25T13:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149719#M3514</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;Be careful, the macro assembler is case sensitive so you have to write __SEG_START_PhoneNumbers to refer to the start address of the section PhoneNumbers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I did a small test and the following code seems to work well.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;     XREF __SEG_START_PhoneNumbers     XDEF test, def_phone1     PhoneNumbers: SECTION;Factory default phone numbers           def_phone1      dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0def_phone2      dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0def_phone3      dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0def_phone4      dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0def_phone5      dc 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0def_pin         dc '000000',0,0,0,0,0,0,0,0,0,0def_start_msg   dc 'Watchguard Alarms  ',0MyCode: SECTIONtest:  ldhx   __SEG_START_PhoneNumbers&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;make sure to either use one of the labels in section PhoneNumbers or to disable smart linking for one of them otherwise the linker will not link the section to the application (as it is not used).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To force linking of section PhoneNumbers just add an&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDEF def_phone1&lt;/DIV&gt;&lt;DIV&gt;in your assembly source file, and the following in the .prm file:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ENTRIES&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def_phone1&lt;BR /&gt;&amp;nbsp; END&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149719#M3514</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2020-10-29T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149720#M3515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The problem with the initial posting is that section names cannot be used as labels in the assembler.&lt;BR /&gt;If you just need address of the section part the current assembly modules defines, use a label defined in the start of the section (e.g. SectionLabel below).&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;SectionName: SECTIONSectionLabel:&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Using the __SEG_START_ syntax from assembly works too, it's advantage is that it provides the address of the first byte of the section regardless of where the section content was defined.&lt;BR /&gt;For content defined in the same file, I would not use it to keep the code simple.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:51:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149720#M3515</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2020-10-29T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149721#M3516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for your replies, this has solved problem 1, created problem 2&lt;BR /&gt;&lt;BR /&gt;We are actually porting a project of 25K+ lines of ASM from&lt;BR /&gt;&lt;BR /&gt;Pemicro to Codewarrior, which we wrote about 5 years ago.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The new problem is that we cannot get CW to do complex relocatable expressions&lt;BR /&gt;&lt;BR /&gt;&amp;gt; A2401: Complex relocatable expression not supported&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to make the following work?&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ldhx RAMBuffer + __SEG_START_PhoneNumbers&lt;BR /&gt;&lt;BR /&gt;(RAMBuffer is a large mutipurpose buffer in general ram)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I realise that this could be re-written, but there are literally 25,0000 lines of code with a majority using complex relocatable expressions to many different areas of flash with many different names and labels (mostly more complex than the above example)...&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:30:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149721#M3516</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2007-09-26T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149722#M3517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This is a better example of what we currently do&lt;BR /&gt;&lt;BR /&gt;RAMByte1 = Standard byte of RAM&lt;BR /&gt;RAMbuffer = Large RAM buffer for storing all sorts of temp data&lt;BR /&gt;FlashCopyRAMByte1 = The flash equivilant of RAMByte1&lt;BR /&gt;FlashVariblesPage1 = The Page of Flash we are using for storing this particular state&lt;BR /&gt;&lt;BR /&gt;code:&lt;BR /&gt;lda&amp;nbsp;&amp;nbsp;&amp;nbsp; RAMByte1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ;Get some data value to be stored to updating flash&lt;BR /&gt;sta&amp;nbsp;&amp;nbsp;&amp;nbsp; (RAMbuffer+(FlashCopyRAMByte1-(FlashVariblesPage1+$100)))&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&lt;BR /&gt;This is current code that i would like to still compile with Codewarrior as we did with Pemicro&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149722#M3517</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2007-09-26T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149723#M3518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;This would seem to be specifically a problem with a relocatable assembly project.&amp;nbsp; I assume the original P&amp;amp;E code&amp;nbsp;used absolute assembly, where the value of all labels were defined prior to their&amp;nbsp;being referenced.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;A similar problem occurred in an earlier thread -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=2690" target="_blank"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=2690" target="test_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=2690&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2007-09-26&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:29 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 14:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149723#M3518</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-09-26T14:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149724#M3519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, i see the problem, however, I cannot see how to re write this code to work:&lt;BR /&gt;&lt;BR /&gt;memory&lt;BR /&gt;RAMByte1 = Standard byte of RAM&lt;BR /&gt;RAMbuffer = Large RAM buffer for storing all sorts of temp data&lt;BR /&gt;FlashCopyRAMByte1 = The flash equivilant of RAMByte1&lt;BR /&gt;FlashVariblesPage1 = The Page of Flash we are using for storing this particular state&lt;BR /&gt;&lt;BR /&gt;code:&lt;BR /&gt;lda&amp;nbsp;&amp;nbsp;&amp;nbsp; RAMByte1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ;Get some data value to be stored to updating flash&lt;BR /&gt;sta&amp;nbsp;&amp;nbsp;&amp;nbsp; (RAMbuffer+(FlashCopyRAMByte1-(FlashVariblesPage1+$100)))&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 06:09:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149724#M3519</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2007-09-27T06:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149725#M3520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I don't really understand what your sample code is trying to achieve.&amp;nbsp; However, the destination address is calculated using three labels.&amp;nbsp; How many&amp;nbsp;of these are declared as an external reference (using XREF directive)?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you continue with relocatable assembly, probably two of the labels would need to have been explicitly defined as constants (using the EQU directive) prior to the assembly of the sample lines.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Another approach might possibly be the use of indexed addressing.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Of course, it may well be simpler to stay with absolute assembly for the old project.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149725#M3520</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-09-27T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149726#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Thanks again for your reply&lt;BR /&gt;&lt;BR /&gt;The code is accessing varibles in tables of flash which are stored in a RAM buffer. Essentially, there are all these diffrent tables that need to have bytes updated as they are changed from user inputs (actually from a modem)&lt;BR /&gt;&lt;BR /&gt;Example below with details&lt;BR /&gt;&lt;BR /&gt;The code is only used to update flash data in a ram buffer then another routine updates the flash&lt;BR /&gt;Address &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; memory&lt;BR /&gt;$0100 - RAMByte1 = Standard byte of RAM&lt;BR /&gt;$0200 - RAMbuffer = Large RAM buffer for storing all sorts of temp data&lt;BR /&gt;$8110 - &lt;B&gt;XDEF&lt;/B&gt; FlashCopyRAMByte1 = The flash equivilant of RAMByte1&lt;BR /&gt;$8000 - &lt;B&gt;XREF&lt;/B&gt; __SEG_START_FlashVariblesPage1 = The Page of Flash we are using for storing this particular state&lt;BR /&gt;&lt;BR /&gt;code:&lt;BR /&gt;lda&amp;nbsp;&amp;nbsp;&amp;nbsp; RAMByte1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ;Get some data value to be stored to updating flash&lt;BR /&gt;sta&amp;nbsp;&amp;nbsp;&amp;nbsp; (RAMbuffer+(FlashCopyRAMByte1-(__SEG_START_FlashVariblesPage1+$100)))&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;So this will load a single ram byte and update it in a the RAMBuffer i.e.&lt;BR /&gt;sta&amp;nbsp;&amp;nbsp; ($0200+($8110-($8000+$0100)))&lt;BR /&gt;($8000+$0100) = $8100 simply adds an offset as we are using what is refered to as the second page&lt;BR /&gt;($8110-$8100) = $0010 The offset of this varible in the second page of the table&lt;BR /&gt;($0200+$0010) = The byte in the RAMBuffer to be updated is 10 bytes from the start of the buffer.&lt;BR /&gt;&lt;BR /&gt;Can this be done using indexing?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by CarlFST60L_3rd on &lt;SPAN class="date_text"&gt;2007-09-27&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:35 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149726#M3521</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2007-09-27T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149727#M3522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If my understanding is correct, you wish to copy data into RAMbuffer, which starts at address $200, and the contents of RAMbuffer will eventually be written to flash, commencing at address $8000.&amp;nbsp; It is also my understanding that the destination of the&amp;nbsp;variable data will have identical offset&amp;nbsp;for both RAM and flash, namely $110 from the start of each memory block.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If this be the case, you could simply define the &lt;U&gt;offset&lt;/U&gt; required for the buffer storage of each variable, and presumably this would be defined as a constant using the EQU directive.&amp;nbsp; The location of the flash block need not even be considered here, as the programming process is handled elsewhere.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xref&amp;nbsp;RAMbuffer&amp;nbsp; ; Location of buffer defined elswhere&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;Var1Off: equ $110&amp;nbsp;&amp;nbsp; ; Constant offset for storage of this variable&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;Var2Off: equ $111&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;etc.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;lda&amp;nbsp; Var1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp; &amp;nbsp; sta&amp;nbsp; RAMbuffer+Var1Off&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;or using indexed addressing -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;lda&amp;nbsp; Var1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ldhx Var1Off&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sta&amp;nbsp; RAMbuffer,x&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2007-09-28&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;06:08 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 03:05:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149727#M3522</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-09-28T03:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149728#M3523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I would use equates, but the table is actually 1024 bytes, and there are two of them, so that means way to many equates to work out (espically when there are so many diffrent types of data, strings, tables etc). Back to absolute i go.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 07:18:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149728#M3523</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2007-09-28T07:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using __SEG_START_  in .asm to address memory allocated in a PRM file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149729#M3524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;But don't you already use equates to map the variables into flash, as represented by the constant &lt;FONT face="Courier New"&gt;FlashCopyRAMByte1&lt;/FONT&gt;?&amp;nbsp; The basis of my suggestion was that you replace each absolute address value with an offset value (that can be applied to both RAM and flash memory&amp;nbsp;blocks), so the quantity of equates would be no greater&amp;nbsp;than you currently have.&amp;nbsp; To calculate the&amp;nbsp;offset value, I suspect&amp;nbsp;only requires to subtract $8000 from the current mapping addresses.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you have a large number of "random" buffer locations to be defined, another method would be to use a table of offsets, where each entry of the new&amp;nbsp;look-up table would correspond to&amp;nbsp;the required&amp;nbsp;offset word&amp;nbsp;vallue.&amp;nbsp; The following example&amp;nbsp;is for a HCS08 device, with the&amp;nbsp;quantity of defined offsets not exceeding 127.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;OFF_TAB:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DC.W&amp;nbsp; $233,$110,$000,$100 ; Offset values for Var0 -&amp;gt; Var3&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDA&amp;nbsp;&amp;nbsp; Var3&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX&amp;nbsp; #3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Table index value for Var3&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LSLX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Offset is word value&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX&amp;nbsp; OFF_TAB,X&amp;nbsp; ; Fetch offset value&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STA&amp;nbsp;&amp;nbsp; RAMBuffer,X&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-SEG-START-in-asm-to-address-memory-allocated-in-a-PRM-file/m-p/149729#M3524</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-09-28T10:57:58Z</dc:date>
    </item>
  </channel>
</rss>

