<?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 Re: Assembly langauge code or C code in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129504#M1983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi venki,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It is easy to spot these blocks of strings by eye as they contain hex values restricted to the 2X to 7X range (printable ASCII) with the occasional string terminator. Usually loaded towards the 4x to 7x range of upper and lower case letters as well.&lt;/DIV&gt;&lt;DIV&gt;So you just put a line break after the terminator ($00 in this case) then sit there with a paper ASCII table and do the conversion by hand. Then change it to the lines to feed into an assembler as Mac has demonstrated. There maybe some tool available to do this or you could probably write some script to do it or maybe just get stuck in and do it the hard way. I already warned you it wasn't going to be easy!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2007 08:38:52 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2007-04-12T08:38:52Z</dc:date>
    <item>
      <title>Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129479#M1958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have source code&amp;nbsp;read &amp;nbsp;from MC08GP32. can we convert these codes in assembly Langauge or C Language.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fcommunity_files%2F8BITCOMM%2Fmsg5529_S1I22515.zip" rel="nofollow" target="_blank"&gt;S1I22515.s19&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:14 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 14:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129479#M1958</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-04T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129480#M1959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi venki,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For this you need a dissassembler. There is one available in the free tools from &lt;A href="http://www.pemicro.com/" rel="nofollow" target="_blank"&gt;www.pemicro.com&lt;/A&gt; or you can use the ICD from within the package for the GP32. You can also download Codewarrior from this site which will enable you to do this (and a lot more!).&lt;/DIV&gt;&lt;DIV&gt;I did this using decoder.exe from within Codewarrior which produced the included listing file.&lt;/DIV&gt;&lt;DIV&gt;Obviously you need to do a LOT more work than this to get a readable/understandable programme.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/mst5531_S1I22515.zip" rel="nofollow" target="_self"&gt;S1I22515.lst&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:16 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 15:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129480#M1959</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-04T15:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129481#M1960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;lst files are now allowed.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:55:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129481#M1960</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-04-04T18:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129482#M1961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi venki.&lt;/DIV&gt;&lt;DIV&gt;If you&amp;nbsp;follow Peg's advice and can download a free "special edition" of CodeWarrior from the Freescale web site, you will not only get an assembler manual and tools -- but also a simulator that will let you practice writing, assembling&amp;nbsp;and executing programs in assembly language.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is one of those "bargains" that will make you say -- "Wow!"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Curt&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 21:01:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129482#M1961</guid>
      <dc:creator>Curt</dc:creator>
      <dc:date>2007-04-04T21:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129483#M1962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Venki,&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;The disassembled code from your original .S19 file (the code actually starts about half way through the created file) appears to be the result of compiled and linked C code.&amp;nbsp; This is probably &lt;U&gt;not&lt;/U&gt; a good place to start learning about the structure of an assembly program.&amp;nbsp; I think you will need to start with the actual source code for much simpler assembly programs.&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>Wed, 04 Apr 2007 21:29:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129483#M1962</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-04-04T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129484#M1963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Mac,&lt;/DIV&gt;&lt;DIV&gt;Pls let me know the best way to get either c code or Assembly code from the file attached.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 14:19:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129484#M1963</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-05T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129485#M1964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi venki,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have already given you the assembly and told you how to do it yourself.&lt;/DIV&gt;&lt;DIV&gt;What Mac is saying (and I tend to agree it is possible) is that the code supplied looks as though it may have started out as C code.&lt;/DIV&gt;&lt;DIV&gt;It is very difficult to disassemble machine code to readable assembly, but it always possible due to the 1 to 1 relationship. It is virtually impossible to convert machine code to c code!&lt;/DIV&gt;&lt;DIV&gt;The problem that Mac is trying to point out is that if the code started from c code it makes the conversion of the machine code to assembly even more difficult than it already is.&lt;/DIV&gt;&lt;DIV&gt;If you really have to do this it is going to take many many hours of painstaking work. The difficulty level will depend on your knowledge of what it is actually supposed to do and the details of the hardware connected to the original MCU.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 15:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129485#M1964</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-05T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129486#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Peg,&lt;/DIV&gt;&lt;DIV&gt;Our assembly code starts from $8000,which is starting address of Flash Memory then we should not have any confusion that assembly code&amp;nbsp; what we achieved is what we required.I will take pain of undestanding as i know the function &amp;amp; hardware well.Let me know what the upper half portion of code resembles.Please confirm whether the assembly code what we achieved is what we needed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 16:32:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129486#M1965</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-05T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129487#M1966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi venki,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes the FLASH is programmed starting at $8000 which is the start address of the flash for this device.&lt;/DIV&gt;&lt;DIV&gt;However programme execution starts at $80E8 as defined by the double byte programmed at $FFFE which is the reset vector. This makes sense in that the byte above this is RTS.&lt;/DIV&gt;&lt;DIV&gt;I have taken the trouble to form a rough vector table for you. Going through this table you can see that although all vectors have handler routines a lot of them simply disable that particular interrupt.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From here you can make a start at breaking the code up into small manageable chunks.&lt;/DIV&gt;&lt;DIV&gt;Another technique is to look for RTS and RTI and seperate out these subroutines.&lt;/DIV&gt;&lt;DIV&gt;One of the first things is to replace all the absolute addresses in the register areas and replace them with there register names.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code above approx. $CF00 looks like it is data rather than code and there seems to be a lot of it. Does this make sense to have this much hard coded data?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyway, good luck I do not envy your job.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2007-04-05&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:25 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/msg5552_vecttabl.txt" rel="nofollow" target="_self"&gt;vecttabl.txt&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:17 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 18:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129487#M1966</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-05T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129488#M1967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Peg,&lt;/DIV&gt;&lt;DIV&gt;Thanks for your valueble effort in confirming aboat the code.You have not mentioned anything&amp;nbsp;aboat Code above assembly code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 19:02:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129488#M1967</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-05T19:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129489#M1968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I haven't tried the disassembler yet but I have a couple of questions.&lt;BR /&gt;&lt;BR /&gt;Is it a labeling disassembler?&lt;BR /&gt;&lt;BR /&gt;And does it allow multiple passes? That is, can you look at a 'first pass' and do things like define strings and change label names and such and then run another pass on it?&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 19:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129489#M1968</guid>
      <dc:creator>mke_et</dc:creator>
      <dc:date>2007-04-05T19:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129490#M1969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Venki,&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;Within the listing file, the first half of the file contains a "memory dump" of each line of the .S19 file, one line at a time.&amp;nbsp; It can be ignored, since your interest is&amp;nbsp;with&amp;nbsp;the disassembled code.&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 am curious as to what you hope to achieve with the disassembly.&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;Once you have separated the code into the various sub-routines, identify those "low level" routines that do not call any other sub-routines.&amp;nbsp; Then attempt to identify what each of these does.&amp;nbsp; The routines that read or write&amp;nbsp;peripheral registers may be easier to decode.&amp;nbsp; I suggest you add copious comments as you work through the code.&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 also don't envy your task of making sense of about 27K of code - I have previously&amp;nbsp;reverse engineered&amp;nbsp;projects with about 1K to 2K of code that was originally written in assembler (and not compiled from C), and this was tedious and time consuming enough.&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, 05 Apr 2007 20:28:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129490#M1969</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-04-05T20:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129491#M1970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;One thing for sure though Venki:&amp;nbsp; if you actually manage to dis-compile a 27K program you will be a bonafide expert in several areas (assembly language the least of them).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It will be a bit like trying to reconstruct your program from a listing that's been through the shredder twice -- or rewriting Kafka's&amp;nbsp; _The Trial_ given a box of the letters contained in the original book&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 21:44:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129491#M1970</guid>
      <dc:creator>Curt</dc:creator>
      <dc:date>2007-04-05T21:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129492#M1971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Mike,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I don't think it is very clever at all, but I have never really tried to learn how to use it properly.&lt;/DIV&gt;&lt;DIV&gt;For the 08 I have only ever wanted to disassemble small sections of code and figured it was easier to&amp;nbsp; work on the first pass by hand than learn how to automate it.&lt;/DIV&gt;&lt;DIV&gt;Obviously with a job the size of venki's I would be reading every word of help I could find.&lt;/DIV&gt;&lt;DIV&gt;I was actually hoping someone more knowledgeable was going to jump in here and suggest some more powerful software (or methods) to achieve this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2007 05:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129492#M1971</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-06T05:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129493#M1972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Peg,&lt;/DIV&gt;&lt;DIV&gt;Rough Vector table which you have created correspond to opcode &amp;amp; operands of the instruction infront of it.I&amp;nbsp;dont understand &amp;nbsp;how&amp;nbsp;vectors are handled&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 13:53:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129493#M1972</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-07T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129494#M1973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi venki,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The vector table at the very top of memory holds the interrupt vectors for the various interrupt sources within the device. You should read the chapter on interrupts in the text I referenced before for a full explanation. I will attempt to give rough explanation here that glosses over some of the specifics and just give you the stuff you need now.&lt;/DIV&gt;&lt;DIV&gt;The vector table I gave you has three columns the first is the address within the device and the second column is the contents of that address, and the next, in word format. The third is the description&lt;/DIV&gt;&lt;DIV&gt;The simplest one is the reset vector at $FFFE. On power up or reset the programme counter will be loaded with the address stored here and execution will begin from there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Another one is the SCIRX vector.&lt;/DIV&gt;&lt;DIV&gt;Say the programme is running and the serial port recieves a character. This character will need to processed quite quickly in case there are others coming in right behind it. The best way to do this is use interrupts. When setup, and the character comes in, a SCIRX interrupt will be generated and registers and the current address of programme execution is stored away in a piece of RAM called the stack. Then the programme counter is loaded with $85CC (in this case). Execution will then jump to there and continue until an RTI is found. This then gets the info back of the stack and the programme continues as before.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code at 85CC (I haven't looked in this case) possible just stores the incoming character into a buffer and checks what it was to see if it should do anything else (possible a CR would mean the end of a string etc)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So in the code you should find&amp;nbsp;many "interrupt routines" that start at addresses in the second column and continue up to a RTI. You could start here, seperate all the routines out from each other and work out which ones do something useful and which ones are just there for safety (just in case the interrupt should trigger even though it is not intended to do so).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope I have made some sense here and helped you out, you have a long, long way to go...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2007-04-09&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;12:11 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129494#M1973</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-09T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129495#M1974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Peg,&lt;/DIV&gt;&lt;DIV&gt;I apologise for not giving you correct information what i inteded to.What i mean to say is whatever address&lt;/DIV&gt;&lt;DIV&gt;(8564) is infront of Vector (FFDC) is opcode,operand of instuction(TPA) whose opcode is 85.&lt;/DIV&gt;&lt;DIV&gt;Refering to your vector table,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Instuction&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opcode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operand&lt;/DIV&gt;&lt;DIV&gt;FFDC 8564 timebase&amp;nbsp;&amp;nbsp;&amp;nbsp; TPA&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; 85&lt;BR /&gt;FFDE 85D7 adc&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;LSR 133,X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64&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; 85&lt;BR /&gt;FFE0 85D2 kbi&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; STA&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; D7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85D2&lt;BR /&gt;FFE2 85CF sci tx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TPA&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; 85&lt;BR /&gt;FFE4 85CC sci rx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;STX $85CC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;85CC&lt;BR /&gt;FFE6 85B9 sci err&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TPA&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;85&lt;BR /&gt;FFE8 85B4 spi tx&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;ADC $85&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85&lt;BR /&gt;FFEA 85AD spi rx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AND $85&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85&amp;nbsp;&amp;nbsp;&lt;BR /&gt;FFEC 8594 tim2 oflow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BSR *-121&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85&lt;BR /&gt;FFEE 858F t2ch1&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;TXS&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;94&lt;BR /&gt;FFF0 858A t2ch0&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;TPA&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; 85&lt;BR /&gt;FFF2 8571 t1 oflow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WAIT&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; 8F&lt;BR /&gt;FFF4 856C t1ch1&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; TPA&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; 85&lt;BR /&gt;FFF6 8567 t1ch0&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; PULH&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;8A&lt;BR /&gt;FFF8 855F pll&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;TPA&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; 85&lt;BR /&gt;FFFA 855A irq&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; DECX&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;5A&lt;BR /&gt;FFFC 80E8 swi&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; EOR 128,X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;FFFE 80E8 reset&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;EOR 0,X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I Feel you have formed a vector table (Address) with opcode &amp;amp; operand of instuction in front of it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 10:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129495#M1974</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-09T10:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129496#M1975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi venki,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No! What I have done is correct!&lt;/DIV&gt;&lt;DIV&gt;The disassembler does not know about the flash area reserved for the vector table so it has simply blindly attempted to convert the data here into code.&lt;/DIV&gt;&lt;DIV&gt;The note I made before about the code after a certain address being data is similar to this. The programmer was using an area of flash for data (not code) but the disassembler does not know about this either and just blindly attemps to convert it. You will see many illegal opcodes in this area. This is also a problem in that it takes some time for the disassemble to fall back into sync after these areas.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 14:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129496#M1975</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-04-09T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129497#M1976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Peg,&lt;/DIV&gt;&lt;DIV&gt;Thanks it is clear now.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 14:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129497#M1976</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-09T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly langauge code or C code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129498#M1977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Peg,&lt;/DIV&gt;&lt;DIV&gt;As we noticed code above $CF00 Contains data.It is not fair enough to have so much hard coded data&lt;/DIV&gt;&lt;DIV&gt;in flash.1)What are the different options to keep these data?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2) Means of transfering this data&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Venki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:51:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Assembly-langauge-code-or-C-code/m-p/129498#M1977</guid>
      <dc:creator>venki</dc:creator>
      <dc:date>2007-04-10T09:51:34Z</dc:date>
    </item>
  </channel>
</rss>

