Searching \ for 'HEX to ASM' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/language/index.htm?key=asm
Search entire site for: 'HEX to ASM'.

Truncated match.
PICList Thread
'hex to asm'
1999\05\10@024842 by electme

flavicon
face
hi ! & thanks for your help.

i have a 12c508 otp with a small amount of code in it.
i cant remember what the code is .
i have read the code out & its in hex
i want to convert it to asm so i can read it !
is there any way i can do it.
i have been using mplab.


thanks for your assistance , i appreciate it
glen

1999\05\10@060000 by Ravi Pailoor

flavicon
face
part 0 989 bytes content-type:text/x-vcard; charset=us-ascii; name="vcard.vcf" (decoded 7bit)

Pailoor

Glen wrote:

{Quote hidden}

Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Description: Card for Ravi Pailoor
Content-Disposition: attachment; filename="vcard.vcf"
Content-Transfer-Encoding: 7bit

Attachment converted: wonderland:vcard.vcf (TEXT/CSOm) (0002F694)
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Description: Card for Ravi Pailoor
Content-Disposition: attachment; filename="vcard.vcf"
Content-Transfer-Encoding: 7bit

Attachment converted: wonderland:vcard.vcf 1 (TEXT/CSOm) (0002F695)


'HEX to ASM'
2000\01\23@221635 by David Covick
flavicon
face
Does anyone know of a program that will convert HEX back over to the
Microchip assembly instruction set?  Is this possible?


David

2000\01\23@222728 by Keith Causey

picon face
It certainly is possible though I don't know of any software out there. The
program is called a decomplier and I have written a few. Just like
integrating there are mystery constants though; documentation is lost.
Things like loop and jump and subroutine call labels  will have to be fudged
and given an alias as a function of what you, they informed programmer,
think they are.

> Does anyone know of a program that will convert HEX back over to the
> Microchip assembly instruction set?  Is this possible?
>
>
> David

2000\01\23@223129 by Somasundaram Meiyappan

flavicon
picon face
At 07:15 PM 1/23/00 -0800, you wrote:
>Does anyone know of a program that will convert HEX back over to the
>Microchip assembly instruction set?  Is this possible?
>
>
>David

Yes, why not? There must be some disassemblers in the market. But I am
trying to develop one for Win32. I am doing it only for the mid-range PICs.
I took help from the info on the HEX format available with the help of
MPASM that comes with MPLAB 4.12 - Appendix A. Microchip also has more
documentation on Intel HEX format. I forgot the URL. But I have the
document with me. I can send it to you, if you want.

Regards,
Somasundaram Meiyappan

2000\01\23@224621 by Gaston Gagnon

picon face
Look at Nigel Goodwin's site.
       http://www.lpilsley.demon.co.uk/
You will find his very good program for Tait like programmer which has a
built in disassembler. A standalone disassembler is also available
there.

Regard.
Gaston

Somasundaram Meiyappan a icrit :
{Quote hidden}

2000\01\23@231738 by David Covick

flavicon
face
Thanks all for the help.
I think the Nigel disassembler will get me where I want to go.
After a disassemble of a hex file in the disassembler, in fact, all is not
there.....better than nothing :)

Thanks a bunch!!

David

----- Original Message -----
From: David Covick <spam_OUTdacTakeThisOuTspamWEST.NET>
To: <.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU>
Sent: Sunday, January 23, 2000 7:15 PM
Subject: HEX to ASM


> Does anyone know of a program that will convert HEX back over to the
> Microchip assembly instruction set?  Is this possible?
>
>
> David
>

2000\01\23@233543 by Wagner Lipnharski

flavicon
face
You need to be careful with some disassemblers.
If you have some data tables in the middle of the code, the disassembler
*can* gets lost track, since it will the hexa code for the data "Hello
World" (for example) would be instruction code bytes... so you can
imagine the mess at the disassembler output.  If you are the original
software writer, you can easily figure it out, but if you are
disassembling code from somebody else, it can take some time to you
realize that "nonsense" code is in real a data list or table.
Wagner

David Covick wrote:
{Quote hidden}

2000\01\23@235243 by PDRUNEN

picon face
In a message dated 1/23/00 9:16:49 PM Central Standard Time, EraseMEdacspam_OUTspamTakeThisOuTWEST.NET
writes:

<< Does anyone know of a program that will convert HEX back over to the
Microchip assembly instruction set?  Is this possible? >>

I thought you could do this with MPLAB?  just use the import function then
select display code in the display window.

Paul

2000\01\24@024134 by paulb

flavicon
face
Wagner Lipnharski wrote:

> You need to be careful with some disassemblers.
> If you have some data tables in the middle of the code, the
> disassembler *can* gets lost track, since it will the hexa code for
> the data "Hello World" (for example) would be instruction code
> bytes... so you can imagine the mess at the disassembler output.

 Quite true.  The assembler "dynamite" for the 680x series (ran under
Flex09 on the target system) allowed definition files of zones, being
code (default), text data, byte data, word data and label data; and
labels.  It marked all labels formally referenced by the code with a
"Lxxxx" label unless one was found already in the label file.

 The only thing it didn't have was an interactive mode with a zone/
label editor.  Anyone seen an assembler with those functions?

 Of course, for "low" and "midrange" PICs, there is no real zone
problem, as all data *correctly* decodes as MOVLWs.

 Automatically building a symbol table from GOTO and CALL references
would be good though, and a good disassembler adds printable ASCII
correspondences to MOVLW data as comments.
--
 Cheers,
       Paul B.

2000\01\24@062926 by Jim Robertson

flavicon
face
At 11:51 PM 1/23/00 EST, you wrote:
>In a message dated 1/23/00 9:16:49 PM Central Standard Time, dacspamspam_OUTWEST.NET
>writes:
>
><< Does anyone know of a program that will convert HEX back over to the
> Microchip assembly instruction set?  Is this possible? >>
>
>I thought you could do this with MPLAB?  just use the import function then
>select display code in the display window.
>
>Paul

Yes, that is correct. You can do it with MPLAB. That is all I used to see what
the picstart plus firmware was doing. Mind you, MPLAB does only the most
basic, basic job, it is not intelligent in anyway.


Regards,

Jim Robertson
NEWFOUND ELECTRONICS
________________________________________
Email: @spam@newfoundKILLspamspampipeline.com.au
http://www.new-elect.com
MPLAB compatible PIC programmers.
________________________________________

2000\01\24@082644 by gdaniel

flavicon
face
> At 07:15 PM 1/23/00 -0800, you wrote:
> >Does anyone know of a program that will convert HEX back over to the
> >Microchip assembly instruction set?  Is this possible?
> >David

MPLAB,
Options/development mode/select processor.

File/Import/Download to memory.

Window/Program Memory.

Click on the top left of the program memory window to select between
display formats.

Making a dissassembler program is far easier than making an assembler
program, you can break the hex file into opcodes with reference to the
hex file format, then use "select case" statement in basic to break each
short word into opcode and parameter if present.
PIC16CXX have only a small instruction set and most of the opcodes are
taken up by different parameters i.e. retlw 0, retlw 1, retlw 3,---retlw
d'255' and goto 0, goto 1, goto 3 etc.

I've done a 68HC11 IDE and keeping track of constants, variables, data
types, hex,decimal, binary, multiple origins, addressing modes etc was
far more complex than what a PIC dissasembler would be.

regards,
Graham Daniel.

2000\01\24@131149 by masubramanian

flavicon
face
Hello Piclisters,
Whether conversion of HEX to ASM possible for code protected device?
One more doubt !  whether the asm file after disassembling will depend on
the compiler used for generating the hex.  I think , if we have used a
particular version of MPLAB for generating the HEX, and if we use the same
for disassembling, we will not have the problem with the asm file.  But
older version of compiled hex code, if disassembled with latest MPLAB as
one of our friend told to import to program memory, will not give us the
correct form of ASM.  AM I right?  If any one has suggestion in this regard
pls send it across

     One more ?  Is it possible to calculate checksum of code protected
device.  This I require to check the programmed IC.  Any app notes for
calculating the checksum of any programmed device with PIC

Thanks

rams

2000\01\24@133718 by Francisco Armenta

flavicon
face
part 0 1389 bytes content-type:text/x-vcard; charset=us-ascii; (decoded 7bit)

if you have the last vertion of MPLAB you can convert code for after
vertions.

Francisco

": S.Ramasubramanian" wrote:
{Quote hidden}

Content-Type: text/x-vcard; charset=us-ascii;
name="briones.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Francisco Armenta
Content-Disposition: attachment;
filename="briones.vcf"

Attachment converted: wonderland:briones.vcf 5 (TEXT/CSOm) (00015BE4)

2000\01\25@061556 by Caisson

flavicon
face
> Van: : S.Ramasubramanian <KILLspamsr.ramasubramanianKILLspamspamUBG.TVSE.CO.IN>
> Aan: RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU
> Onderwerp: Hex to ASM
> Datum: maandag 24 januari 2000 13:15

Hello rams,

 Nope, you're not right.  The code that will result from a
code-to-assembly conversion will be right, no matter what
assembler/compiler was used to create the code.  The only problem that
can/will arise is that it's not allways clear what certain pieces of code
do.  They could be written to conserve memory, code and/or time.  Therefore
a simple binary-to-decimal routine could look different for every compiler
or (human) programmer.

As to calculating a Checksun for code-protected devices:  It was possible
with the 16C84, because you could read the garbeled contents.  The 16F84
however only reads Zero's on a protected device.  So, that would not work.
I gather that more PIC's have the same (reading Zero's) problem

Regards,
 Rudy Wieser


> Hello Piclisters,
> Whether conversion of HEX to ASM possible for code protected device?
> One more doubt !  whether the asm file after disassembling will depend on
> the compiler used for generating the hex.  I think , if we have used a
> particular version of MPLAB for generating the HEX, and if we use the
same
> for disassembling, we will not have the problem with the asm file.  But
> older version of compiled hex code, if disassembled with latest MPLAB as
> one of our friend told to import to program memory, will not give us the
> correct form of ASM.  AM I right?  If any one has suggestion in this
regard
> pls send it across
>
>       One more ?  Is it possible to calculate checksum of code protected
> device.  This I require to check the programmed IC.  Any app notes for
> calculating the checksum of any programmed device with PIC
>
> Thanks
>
> rams

2000\01\27@165953 by Tony Nixon

flavicon
picon face
David Covick wrote:
>
> Does anyone know of a program that will convert HEX back over to the
> Microchip assembly instruction set?  Is this possible?
>
> David

See

http://www.picnpoke.com/demo/heximg.html


--
Best regards

Tony

http://www.picnpoke.com
spamBeGonesalesspamBeGonespampicnpoke.com

2000\01\27@203923 by David Covick

flavicon
face
Thanks Tony........I will give it a try !!


----- Original Message -----
From: Tony Nixon <TakeThisOuTTony.NixonEraseMEspamspam_OUTENG.MONASH.EDU.AU>
To: <RemoveMEPICLISTspamTakeThisOuTMITVMA.MIT.EDU>
Sent: Thursday, January 27, 2000 1:59 PM
Subject: Re: HEX to ASM


{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...