Error when building the .asm file with the mplab

Status
Not open for further replies.

Cleong

Member level 2
Joined
Feb 17, 2006
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,789
have a look, tqs....

recently im doing a project that refer to a webpage..
and when i build the .asm file with the mplab..
an error occur..
below is the code. and the error i already highlight with red colour..
the instruction cfl_jge is wat mean ?
i refer to the data sheet PIC 16f873,and found nothing..
;**********************************************************************
;send_word - takes 10 bit value, converts to hex and sends out to serial
;port
;**********************************************************************
send_word
movf BUFF_HIGH,w
andlw 0x03 ;isolate most significant 2 bits of upper byte
call ascii_lookup
call xmit_byte
swapf BUFF_LOW,w ;move upper nibble of lower byte into w
andlw 0x0F ;isolate lower nibble
call ascii_lookup
call xmit_byte
movf BUFF_LOW,w ;move lower nibble of lower byte into w
andlw 0x0F ;isolate lower nibble
call ascii_lookup
call xmit_byte
return

xmit_byte
banksel PIR1
btfss PIR1,TXIF
goto xmit_byte
movwf TXREG
return

buff_dat
call pack_data ;prepare packed data
movf POINTER,w ;get buffer pointer
call xlat_pntr ;convert to physical address
movwf FSR ;move physical pointer into FSR
movf PACK_BUFF,w ;buffer 1st byte
movwf INDF
incf FSR,f
movf PACK_BUFF+1,w ;buffer 2nd byte
movwf INDF
incf FSR,f
movf PACK_BUFF+2,w ;buffer 3rd byte
movwf INDF
incf FSR,f
movf PACK_BUFF+3,w ;buffer 4th byte
movwf INDF
incf FSR,f
movf PACK_BUFF+4,w ;buffer 5th byte
movwf INDF
incf POINTER,f ;increment pointer
cfl_jge POINTER, D'24', wrap_pt
goto exit_bd
wrap_pt clrf POINTER ;roll pointer to 0
exit_bd return
 

Re: have a look, tqs....

check the syntax of the highlighted instruction. It's a comparison instruction.
 

    Cleong

    Points: 2
    Helpful Answer Positive Rating
Re: have a look, tqs....

dkk said:
check the syntax of the highlighted instruction. It's a comparison instruction.

but y when i use the mplab to build it..
it occur error....
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…