[an error occurred while processing this directive]
|
#define c status,0 ;rw Carry bit
#define z status,2 ;rw Zero bit
comp: movf chahi,w
subwf chbhi,w
btfss c
return ; A>B
btfss z
return ; A movf chalo,w
subwf chblo,w
return
; c=0 - A>B
; c=1, z=0 - A; z=1 A=B
E-mail: info@telesys.ru