This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

shift with ">>" in c51 ...

some time c user do shift for mul and divide and some time u write byte to byte
then not require any carry for me in asm i do two shift mul 4

i do it with c51

ypos3 = ypos>>3;
; SOURCE LINE # 237
MOV A,R5
RRC A
RRC A
ANL A,#01FH
;---- Variable 'ypos3?1255' assigned to

HOW DO IT IN C51 WITHOUT
MOV A,R5
ANL A,#01FH

??