PIC16F84A

how to turn this *hex* code to assembly...
hex ?code?

0000h ? 281f Goto Start:
0001h ? 3fff
0002h - 3fff
0003h - 3fff
0004h - 3fff
0005h ? 3444
0006h ? 3445
0007h ? 3440
0008h ? 344f
0009h - 3438
000Ah ? (?)
000Bh
000Ch
000Dh
000Eh
000Fh
0010h
0011h
0012h ? (?)
0013h ? 3004 - MOVLW 4
0014h - 008f ? MOVWF f
0015h ? 018e - CLRF e
0016h ? 018d ? CLRF d
0017h ? 0000 ? NOP
0018h ? 0b8d ? DECFSZ f, 1
0019h ? 2817 ? Goto 17
001Ah ? 0b8e ? DECFSZ e, 1
001Bh ? 2817 ? Goto 17
001Ch ? 0b8f ? DECFSZ f, 1 ; decrement register 4
001Dh ? 2817 ? Goto 17
001Eh ? 0008 ? RETURN
001Fh ? 3000 - MOVLW 0 ; Start is here
0020h ? 0086 - MOVWF 6
0021h ? 1683 ? BSF 3, 5
0022h ? 3000 ? MOVLW 0
0023h ? 0086 ? MOVWF 6
0024h ? 1283 - BCF ? 3, 5
0025h ? 3001 ? MOVLW 1
0026h ? 008c -MOVWF c
0027h ? 080c - MOVF
0028h ? 2013 -CALL 13
0029h ? 0a8c ? INCF c, 1
002Ah
002Bh
002Ch

*end*
Posted on 2003-08-20 03:30:00 by 010101
hi,
here is a link where u can download a pic disassembler:
Link1

Try this google one (better)

thanks,
with my best wishes,
amr
Posted on 2003-08-20 07:40:36 by amr
Right here :
Posted on 2003-08-25 22:47:23 by mrgone
You can use Microchip's MPLAB, which is free.
Import the hex file and then select "View - Progam memory". That will display the disassembled code.
Posted on 2003-09-11 11:35:26 by VVV
It's better to look in 14 bit in raw binary, since 14 bits is the size of code word in PIC16F84A
Posted on 2005-03-01 19:26:03 by The Svin


3FFF = 11111 1 1111 1111
opformat: 11111 x kkkk kkkk = ADDLW
as your can see here x = 1 and k = FF

3444 = 1101 00 0100 0100
offormat: 1101 xx kkkk kkkk = RETLW x=00 k = 44

and so on...


btw about your nick - any pattern 101010...101 is even power of 2 -1 divided 3 ;)
((2^(2n))-1)/3
Posted on 2005-03-01 20:07:39 by The Svin
in my site you can find a download called "pic16".

it is very good for 16f84

included is the MPLAB assembler, a pic16f84 simulator to test your code, and also a disassembler for converting your .hex files back to .asm format.

thats what i like to use anyway :)
Posted on 2005-03-02 19:25:36 by wilson
  Change from TXT to EXE. Intel hex file format converter from binary file. Well OK guess you can't upload yet. Do a search for "BIN2HEX.EXE"
Posted on 2005-03-23 16:29:16 by mrgone
Download 'gputils': http://gputils.sourceforge.net/ and use gpdasm to disassemble the bin file.
It works I used gpdasm when I reversed a program to rebuild it's source.

edit: sorry for post in old topic, but I thought it might be usefull for others who use pic16F84A to know about gputils.
Posted on 2005-09-25 05:14:16 by dev_zero