How to set the second bit of the register in this setting?

Status
Not open for further replies.

flycracker

Newbie level 4
Joined
Dec 10, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,303
a question in iterview
A Small coupter has 8-bit CPU and only one register,XOR is only assebly command it understands.How to set the second bit of the register?the initial state of the register is unknow.
 

Re: HELP!!

reg⊕$00>reg
reg⊕$02>reg
result : xxxxxx1x

reg⊕$FF>reg
reg⊕$FD>reg
result : xxxxxx1x

If one of two men, one always speaks truth and other always lies, how would you get right answer if you don't know which one is which?

https://en.wikipedia.org/wiki/XOR

 

HELP!!

reg⊕$00>reg
what does it mean??
 

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