Assembly langauge code or C code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Assembly langauge code or C code

8,843 次查看
venki
Contributor I
Hi,
I have source code read  from MC08GP32. can we convert these codes in assembly Langauge or C Language.
 
Venki
 
Message Edited by t.dowe on 2009-09-04 02:14 PM
标签 (1)
0 项奖励
回复
25 回复数

765 次查看
venki
Contributor I
Dear Peg,
Thanks for your valueble effort in confirming aboat the code.You have not mentioned anything aboat Code above assembly code.
 
Regards
venki
0 项奖励
回复

765 次查看
bigmac
Specialist III
Hello Venki,
 
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.  It can be ignored, since your interest is with the disassembled code.
 
I am curious as to what you hope to achieve with the disassembly.
 
Once you have separated the code into the various sub-routines, identify those "low level" routines that do not call any other sub-routines.  Then attempt to identify what each of these does.  The routines that read or write peripheral registers may be easier to decode.  I suggest you add copious comments as you work through the code.
 
I also don't envy your task of making sense of about 27K of code - I have previously reverse engineered 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.
 
Regards,
Mac
 
0 项奖励
回复

765 次查看
Curt
Contributor IV
One thing for sure though Venki:  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).
 
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  _The Trial_ given a box of the letters contained in the original book:smileyhappy:
0 项奖励
回复

765 次查看
Alban
Senior Contributor II
lst files are now allowed.
0 项奖励
回复

765 次查看
Curt
Contributor IV
Hi venki.
If you 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 and executing programs in assembly language.  
 
This is one of those "bargains" that will make you say -- "Wow!"
 
Regards,
Curt
0 项奖励
回复