How Convert a Hex Code to a ASM???


Closed Thread
Results 1 to 12 of 12
  1. #1
    jenny90's Avatar
    jenny90 Guest

    Default How Convert a Hex Code to a ASM???

    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

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    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 ...

    Alain
    Last edited by Acetronics2; - 20th January 2011 at 08:57.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    @Fourth, take "Third" step with a pinch of salt

    @Fifth, this is a Melabs PicBasic forum here.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    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 ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    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.

    Code:
    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"
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    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 ...

    Alain
    Could be

    Attached Images Attached Images  
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Looks like flood detector code to me. 12F683

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

  8. #8
    Join Date
    Jun 2005
    Location
    Surrey, England
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    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:
    Code:
    	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?
    Last edited by FinchPJ; - 21st January 2011 at 22:13.

  9. #9
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default WT?

    Quote Originally Posted by scalerobotics View Post
    Looks like flood detector code to me. 12F683

    http://www.electronics-lab.com/projects/sensors/006/
    How the heck did you find that!!???
    Louie

  10. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Post

    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
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  11. #11
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by LinkMTech View Post
    How the heck did you find that!!???
    I would like to say, cunning, blah blah. But, no, it was Google and a little luck. 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!
    Last edited by ScaleRobotics; - 25th January 2011 at 01:37.
    http://www.scalerobotics.com

  12. #12
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Edit: Aw Steve! You told the secret!

    http://lmgtfy.com/?q=%3A10000000D728...A00083161F0897
    Last edited by mister_e; - 25th January 2011 at 01:40.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts