ECET 330 ECET330 Week 5 Homework Assignment Solution

ECET 330 ECET330 Week 5 Homework Assignment Solution

soffix

  • $16.99


ECET 330 Week 5 Homework

1. Show the value of the register and the carry after the execution of the ASLA instruction.

Given the original content of Register A and carry flag

0

 

1

0

0

1

0

1

0

1

C

 

 

 

 

 

 

 

 

 

C = Register A =

2. Show the value of the register and the carry after the execution of the LSLB instruction.

Given the original content of Register B and carry flag

0

 

1

0

0

1

0

1

0

1

C

 

 

 

 

 

 

 

 

 

C = Register A =

3. Show the value of the register and the carry after the execution of theASRB instruction.

Given the original content of Register B and carry flag

1

0

1

0

0

1

0

1

 

0

 

 

 

 

 

 

 

 

 

C

C = Register A =

4. Show the value of the register and the carry after the execution of theRORA instruction.

Given the original content of Register A and carry flag

1

 

1

0

1

1

1

1

1

0

C

 

 

 

 

 

 

 

 

 

C = Register A =

5. Show how to perform 77 x 34 in the HCS12. Store the result in a WORD-size variable called var1.

6. Show how to perform 77 / 3 in the HCS12. Store the quotient in a WORD-size variable called result, and the remainder in a WORD-size variable called remainder.

7. How are the following decimal-signed numbers represented in HCS12?


      We Also Recommend


      Sale

      Unavailable

      Sold Out