
;Serial ISR
;On serial interrupt at 0023h we analyse RI or TI,If RI  is set then mov content of sbuf into accumlator
;and clr RI and RETI , else check if it was TI then clr TI incremement the circular buffer pointer R0 and 
;move data the location pointed by R0 to sbuf and RETI

SERIAL: JB TI,CLEAR
mov sbuf,#00h
clr ri
reti 
CLEAR: CLR TI 

<b>cjne r0,#43h,next
sjmp out
next:inc r0
mov sbuf,@r0</b>
out:RETI
END	  
