Menu

tinybld18F25J11_int8MHz_19200.asm mpasm (v5.71) complier error, Operand contains unresolvable labels or is too complex

Eric
2017-04-27
2017-04-27
  • Eric

    Eric - 2017-04-27

    Hi Forum,

    I am not at all an expert in assembly, so please bare with me.

    I am using mpasm (v5.71).

    As mentioned in the topic the error is:

    Error[151]   path/to/tinybld18F25J11_int8MHz_19200.ASM 147 : Operand contains unresolvable labels or is too complex

    Here is the code:

    ;; movlw   ((IntrareBootloader>>16)&0xFF)  ;TBLPTR = IntrareBootloader
    ;; movwf TBLPTRU
    movlw ((IntrareBootloader>>8)&0xFF) ; <- there is the problem
    movwf TBLPTRH
    ;; movlw (IntrareBootloader&0xFF)
    ;; movwf TBLPTRL

    it seems as if the compiler doesn't like the use of labels. If I change it to:

        movlw   ((TBLPTR>>8)&0xFF) ;

    there error goes away.

    Maybe some one else has had the same problem and knows a fix???

    Thanks for any help I can get.

     
  • Dan

    Dan - 2017-05-02

    Hi,Eric

    ①Is the label defined correctly?

    org first_address+8
    

    IntrareBootloader:

    ②Description without label.

    movlw   (((first_address+8)>>8)&0xFF)
    movwf   TBLPTRH
    
    movlw   (((first_address+8)>>10)&0xFF)
    

    ;0x0F=0x3C00>>10,0x1F=0x7C00>>10,0x3F=0xFC00>>10

    From Dan

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.