shift command for 89C51 please?

Status
Not open for further replies.

ehsanelahimirza

Full Member level 6
Joined
Feb 24, 2006
Messages
334
Helped
28
Reputation
56
Reaction score
7
Trophy points
1,298
Activity points
3,570
AOA and hi

i want to know what is the shift command to shif left or right a byte.

like i want to shift right 'A'
then

"shr a" is not working. i am unable to remember actual command
 

Its "RRC A" for rotate right through carry
"RR A" for Rotate Right
same way "RLC A" & "RL A"
 

there is rotate command for rotating the bits but no command is there for shifting in assembly as far as i know we have to use c language for shifting.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…