PDA

View Full Version : How Convert a Hex Code to a ASM???



jenny90
- 20th January 2011, 06:55
hi every one..

can you help me how to convert this hex code to a asm???

:10000000D728A30036088400340931208413A308BC
:100010000319D228F030A50022088038A400F0305F
:10002000A5030319A5000319A3030319D228200867
:10003000A6002108A700163072202608A000270875
:10004000A1005620030120183408A21F3408A2087A
:1000500003190301A40F2E2880060C282F28000066
:100060000F2884178005D2280F39A00083161F0897
:100070008F3930389F0083120310A00DA00D1F0888
:10008000C139200401389F000030A10032307320B4
:100090009F149F1849281E08A10083161E08D22805
:1000A0008001840AFF3E031D5028D2282108200425
:1000B0000319A00A8030201AA1062019A106A01851
:1000C000A106210DA00DA10DD228A301A200FF3091
:1000D000A207031CA307031CD2280330A100E330AE
:1000E00073206728A101F43EA000A109FE30031C83
:1000F0007C28A00703187928A0076400A10F79289D
:10010000000020188328201885280800A701A600D1
:100110001C30A2006F30A300BC200F308316810476
:100120008312FF306300A007031CA1070318922865
:10013000D228A2000330A528A2000130A528A200E1
:100140000630A528A2000430A528A8002308210213
:10015000031DAC28220820020430031801300319C3
:1001600002302805031DFF30D2280038031DFF3060
:100170000405031DFF30D2281030A800A101A00102
:10018000A70CA60C031CCA282208A00723080318E2
:10019000230FA107A10CA00CA50CA40CA80BC02830
:1001A0002408D228831303138312640008008316E3
:1001B0007E308F00900183120730990095019001E5
:1001C000831601309F00831283309F00203084000B
:1001D00060305020A03084002030502083160D3035
:1001E00085008312851083168510831205128316ED
:1001F00005129630831265208514831685108312AC
:100200000130A300F4306620051683160512831210
:100210000130A300F4306620851083168510831208
:1002200005128316051205308312B6002030B40083
:100230007F30A2000A3001206400051D2029F32927
:10024000851083168510831205128316051200305F
:1002500083123420C2002108C300323065205921A6
:100260000A3086206400051D3629372920290530EB
:10027000B6002030B4007E30A200283001200230C9
:1002800085068316851083120130A3002C3066206A
:100290006400851D58296400851D532905168316A1
:1002A000051283124B290512831605128312202989
:1002B00037294208A0004308A1000330A3002030E2
:1002C000A220BA004208A0004308A1000230A30007
:1002D000FD309C20BC003A0884003C08B520BC00DE
:1002E000BD0064003C083D0403198629851483166B
:1002F000851005308312B6002030B4007F30A20094
:100300000A30012085108316851083124208A00050
:100310004308A1000230A300FD309920031DA0294D
:1003200085148316851005308312B6002030B40082
:100330007F30A2003C300120851083168510831287
:100340004208A0004308A1000330A30020309F20F2
:10035000031DB42905168316051264308312652027
:10036000051283160512831208004208A0004308F4
:10037000A1000130A30090309920031DC32905126C
:100380008316051283124208A0004308A100013021
:10039000A30090309C20BA004208A0004308A100AE
:1003A0000230A3006C30A220BC003A0884003C0854
:1003B000B520BC00BD0064003C083D040319E429DD
:1003C00005168316051283124208A0004308A100F7
:1003D0000230A3006C309F20031DF22905168316FE
:1003E0000512831220296400051D082A02308506A3
:1003F0008316851005308312B6002030B4007F309C
:10040000A2001E3001200130A3002C306620F32909
:0604100020296300092A07
:02400E00DC3C98
:00000001FF

plzzz help me.

thnk you for your response:
jenny

Acetronics2
- 20th January 2011, 08:47
Hi,

@ First ... not possible to uncompile without the processor type ... ( not a 16F84, 628, 675 ... may be a PBP program, 16F88 ??? )

@ Second ... All labels are lost, so it's tricky to try to understand something ...

@ Third ... Modifying such a program needs very, very, very good assembler skills ... ;)
If so ... you already should know how to proceed for 1) 2) and 3 ) ...

looks it's not the case ... :o

Alain

mister_e
- 21st January 2011, 05:40
@Fourth, take "Third" step with a pinch of salt ;)

@Fifth, this is a Melabs PicBasic forum here.

Acetronics2
- 21st January 2011, 09:15
Hi, Steve

Looks to be a PicBasic generated Hex ...

look at the "GOTO Init" line in the beginning and the "END" lines at the end ... :rolleyes:

Alain

cncmachineguy
- 21st January 2011, 11:28
Does the author mind if you hack their code? often if they don't mind, they will supply the source. What you want to do is a very time consuming process.



look at the "GOTO Init" line in the beginning and the "END" lines at the end

Is this unique for PBP? All my asm programs start with goto/gosub INIT. they also all "end" :)

mister_e
- 21st January 2011, 20:42
Hi, Steve

Looks to be a PicBasic generated Hex ...

look at the "GOTO Init" line in the beginning and the "END" lines at the end ... :rolleyes:

Alain
Could be ;)

http://www.manusapo.com/wp-content/uploads/2011/01/busted.jpeg

ScaleRobotics
- 21st January 2011, 21:13
Looks like flood detector code to me. 12F683

http://www.electronics-lab.com/projects/sensors/006/

FinchPJ
- 21st January 2011, 22:02
Looks like flood detector code to me. 12F683

http://www.electronics-lab.com/projects/sensors/006/

It is - and it decodes as typical PicBasic code - a sample of lines follows:

processor 12F683
Radix DEC
#include "P12F683.INC"
__CONFIG 0x3CDC
ERRORLEVEL -302

ORG 0000H
GOTO L00D7H
...
L00D7H:
BSF STATUS,RP0
MOVLW 007EH
MOVWF OSCCON
CLRF OSCTUNE
BCF STATUS,RP0
MOVLW 0007H
MOVWF CMCON0
CLRF CCP1CON
CLRF T1CON

etc - in fact the Hex code is freely offered, and converting to assembler is trivial - I used Real Pic Simulator here. But why would you want it as ASM?

LinkMTech
- 25th January 2011, 01:21
Looks like flood detector code to me. 12F683

http://www.electronics-lab.com/projects/sensors/006/

How the heck did you find that!!??? :eek:

mister_e
- 25th January 2011, 01:31
once a hex is posted on a web page it's easy to find it depending the "Search tool" you're using and HOW you use it :rolleyes:

ScaleRobotics
- 25th January 2011, 01:32
How the heck did you find that!!??? :eek:

I would like to say, cunning, blah blah. But, no, it was Google and a little luck.:D With a single (42 character) line of the hex code for a search, only one real result.

Anyway, he is probably better off modifying one of Steve's capacitive lamp switches. (without the 120 volts of course).

Edit: Aw Steve! You told the secret!

mister_e
- 25th January 2011, 01:34
Edit: Aw Steve! You told the secret!


http://lmgtfy.com/?q=%3A10000000D728A30036088400340931208413A308BC+% 3A100010000319D228F030A50022088038A400F0305F+%3A10 002000A5030319A5000319A3030319D228200867+%3A100030 00A6002108A700163072202608A000270875+%3A10004000A1 005620030120183408A21F3408A2087A+%3A10005000031903 01A40F2E2880060C282F28000066+%3A100060000F28841780 05D2280F39A00083161F0897
:D