Question:

68HC11 Microcontroller? ?

by  |  earlier

0 LIKES UnLike

Accumulator B contains %0000 1010. This is EXOR-ed with %0000 1110 by using the EORB instruction. After the instruction has been executed, Accumulator B will contain?

1. 0000 0000

2. 0000 1010

3. 0000 0100

4. 1111 1011

My answer is 1. Is this correct? Thanks.

 Tags:

   Report

2 ANSWERS


  1. Nope, try again.

    Exclusive or is the same as a 3-way switch.

    By the way would you be interested in my 68HC11 evaluation board?


  2. No.  It would contain 0000 0100, so the correct answer is 3.

    The exclusive-OR operation returns a 1 bit if the input bits are different, or 0 if they are the same.  Therefore,

    1010 XOR

    1110

    ------

    0100

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.