• AVR Freaks

Hot!Get the hex asm

Author
Meta
Senior Member
  • Total Posts : 153
  • Reward points : 0
  • Joined: 2008/02/11 06:33:46
  • Location: Spain
  • Status: offline
2020/07/04 06:02:32 (permalink)
0

Get the hex asm

Hello:

I have the files in hex.

Is there a program to see your assembler and be able to understand it?

This is the PIC16F630 file.
:020000040000FA
:100000000000000000008312073099008B01831666
:100010002830850081019B011C141A088312850079
:100020008C01851D11288B014B20051C3028851C57
:100030003328051D36283928851D2C281C284B20DF
:1000400085191C284B2085191C284B2085191C2834
:100050004B2085191C282C28300885003C201128AD
:100060001530B0001C281330B0001C280730B00039
:100070001C281630B0001C28300883169A0038302F
:100080009B081C1555309D00AA309D009C141C1126
:1000900083128C0108000330B1001830B200023026
:1000A000B300B10B5428B20B5628B30B5128582873
:0200B000080046
:0400B20000340034E2
:02400E00543F1D
:1042000016006A006F0073006500740065002000EE
:00000001FF

 
Thank you.
#1

5 Replies Related Threads

    NorthGuy
    Super Member
    • Total Posts : 6228
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Get the hex asm 2020/07/04 06:40:12 (permalink)
    +1 (1)
    Yes. I use MPLAB 8 for such things.
    #2
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Get the hex asm 2020/07/04 07:08:43 (permalink)
    +1 (1)
    NorthGuy
    Yes. I use MPLAB 8 for such things.

    +1
    Just select the right chip, then import the hex file.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    Meta
    Senior Member
    • Total Posts : 153
    • Reward points : 0
    • Joined: 2008/02/11 06:33:46
    • Location: Spain
    • Status: offline
    Re: Get the hex asm 2020/07/04 09:06:22 (permalink)
    0

     
    It is imported.

    Where do i see asm

    Where do I run it?
    #4
    dan1138
    Super Member
    • Total Posts : 3731
    • Reward points : 0
    • Joined: 2007/02/21 23:04:16
    • Location: 0
    • Status: offline
    Re: Get the hex asm 2020/07/04 10:31:18 (permalink)
    0
    This is your HEX file disassembled to build with the pic-as(v2.20) assembler included in the XC8 installation:
    ;
    ; Add to the MPLABX project Additional options:
    ;   -Wa,-a -Wl,-presetVec=0h,-peepromData=2100h
    ;
    #include <xc.inc>

     PROCESSOR 16F630

     config FOSC = INTRCIO   // Oscillator Selection bits (INTOSC oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN)
     config WDTE = OFF       // Watchdog Timer Enable bit (WDT disabled)
     config PWRTE = OFF      // Power-up Timer Enable bit (PWRT disabled)
     config MCLRE = OFF      // RA3/MCLR pin function select (RA3/MCLR pin function is digital I/O, MCLR internally tied to VDD)
     config BOREN = ON       // Brown-out Detect Enable bit (BOD enabled)
     config CP = OFF         // Code Protection bit (Program Memory code protection is disabled)
     config CPD = OFF        // Data Code Protection bit (Data memory code protection is disabled)

        PSECT eepromData,global,class=EEDATA,space=3,delta=2,noexec
            DB  0x16
            DB  'j','o','s','e','t','e',' '

        PSECT   resetVec,class=CODE,delta=2
    resetVec:
            NOP
            NOP
            NOP
            BCF     STATUS,0x5
            MOVLW   0x7
            MOVWF   CMCON
            CLRF    INTCON
            BSF     STATUS,0x5
            MOVLW   0x28
            MOVWF   TRISA
            CLRF    OPTION_REG
            CLRF    EEADR
            BSF     EECON1,0
            MOVF    EEDAT,W
            BCF     STATUS,0x5
            MOVWF   PORTA
            CLRF    PIR1
    L011:
            BTFSS   PORTA,0x3
            GOTO    L011
            CLRF    INTCON
            CALL    L04B
            BTFSS   PORTA,0
            GOTO    L030
            BTFSS   PORTA,0x1
            GOTO    L033
            BTFSS   PORTA,0x2
            GOTO    L036
            GOTO    L039
    L01C:
            BTFSS   PORTA,0x3
            GOTO    L02C
            GOTO    L01C
            CALL    L04B
            BTFSC   PORTA,0x3
            GOTO    L01C
            CALL    L04B
            BTFSC   PORTA,0x3
            GOTO    L01C
            CALL    L04B
            BTFSC   PORTA,0x3
            GOTO    L01C
            CALL    L04B
            BTFSC   PORTA,0x3
            GOTO    L01C
            GOTO    L02C
    L02C:
            MOVF    0x30,W
            MOVWF   PORTA
            CALL    L03C
            GOTO    L011
    L030:
            MOVLW   0x15
            MOVWF   0x30
            GOTO    L01C
    L033:
            MOVLW   0x13
            MOVWF   0x30
            GOTO    L01C
    L036:
            MOVLW   0x7
            MOVWF   0x30
            GOTO    L01C
    L039:
            MOVLW   0x16
            MOVWF   0x30
            GOTO    L01C
    L03C:
            MOVF    0x30,W
            BSF     STATUS,0x5
            MOVWF   EEDAT
            MOVLW   0x38
            MOVF    EEADR,F
            BSF     EECON1,0x2
            MOVLW   0x55
            MOVWF   EECON2
            MOVLW   0xAA
            MOVWF   EECON2
            BSF     EECON1,0x1
            BCF     EECON1,0x2
            BCF     STATUS,0x5
            CLRF    PIR1
            RETURN
    L04B:
            MOVLW   0x3
            MOVWF   0x31
            MOVLW   0x18
            MOVWF   0x32
            MOVLW   0x2
            MOVWF   0x33
    L051:
            DECFSZ  0x31,F
            GOTO    L054
            DECFSZ  0x32,F
    L054:
            GOTO    L056
            DECFSZ  0x33,F
    L056:
            GOTO    L051
            GOTO    L058
    L058:
            RETURN
            END     resetVec

    post edited by dan1138 - 2020/07/04 12:05:47
    #5
    dan1138
    Super Member
    • Total Posts : 3731
    • Reward points : 0
    • Joined: 2007/02/21 23:04:16
    • Location: 0
    • Status: offline
    Re: Get the hex asm 2020/07/04 10:42:29 (permalink)
    +2 (2)
    Meta
    Where do i see asm

    Where do I run it?

    If you need someone to tell you how to do this with MPLABX then perhaps you do not have enough bloody minded curiosity to learn enough about assembly language for obsolete PIC controllers.
    #6
    Jump to:
    © 2020 APG vNext Commercial Version 4.5