Cleong
Member level 2
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
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