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.
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.
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:
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 TBLPTRLit seems as if the compiler doesn't like the use of labels. If I change it to:
there error goes away.
Maybe some one else has had the same problem and knows a fix???
Thanks for any help I can get.
Hi,Eric
①Is the label defined correctly?
IntrareBootloader:
②Description without label.
;0x0F=0x3C00>>10,0x1F=0x7C00>>10,0x3F=0xFC00>>10
From Dan