Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right Shift not setting Carry flag?

Status
Not open for further replies.

gandalfjg

Programmer
Jun 5, 2001
1
0
0
US
I am using GCC inline assembler for the Palm Pilot (68000 chip)

As I understand it, when I right shift (divide by two), if the number was odd then the carry bit is set - so why doesnt the code below work?

lsr.w #1,%d1
bcc EvenNumber
.....
EvenNumber:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top