BEE ELECTRICAL Forum Index BEE ELECTRICAL
Electronics, Telecom and Electrical Engineering Related Forum
 
 BEE Electrical 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Your Ad Here
Trace my IP address

how to do shift a byte in controller

 
Post new topic   Reply to topic    BEE ELECTRICAL Forum Index -> Embedded Systems
View previous topic :: View next topic  
Author Message
aamirza1
Starter Level 2


Joined: 24 Apr 2008
Posts: 41

PostPosted: Fri Nov 28, 2008 12:27 pm    Post subject: how to do shift a byte in controller Reply with quote

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
Back to top
View user's profile Send private message
Muhammad Idrees Shahzad
Fresh


Joined: 02 Dec 2008
Posts: 4
Location: Islamabad

PostPosted: Wed Dec 03, 2008 2:14 am    Post subject: shift command Reply with quote

u can use the command

A>>1
this command will shift right A by one place
and the command A <<1 will shift left A by one
_________________
Muhammad Idrees shahzad
Design Engineer
Islamabad
Back to top
View user's profile Send private message Send e-mail
aamirza1
Starter Level 2


Joined: 24 Apr 2008
Posts: 41

PostPosted: Wed Dec 03, 2008 11:48 pm    Post subject: Reply with quote

sorry i forgot to mention

i am using 89C51 and
assembly language
keil compiler
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    BEE ELECTRICAL Forum Index -> Embedded Systems All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Hosted by ForumCity