(sol)16. Ten-Minute Paper_Shift (3)

docx

School

University of California, Berkeley *

*We aren’t endorsed by this school

Course

210

Subject

Statistics

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by CaptainThunderGoldfish14

Report
CE320 : The Ten-Minute Paper: In Class practice #16 Date: _________________________________ Student Name: ________________________________ 1. Suppose that the contents of Accumulator A = $95 and C bit in CCR = 1. Compute the new values of A and C after the execution of the instruction ASLA 2. Suppose that the content at the memory location $1200, Mem[$1200] = $F6 and C bit in CCR = 1. Compute the new values of Mem[$1200] and the C flag after the execution of the instruction LSL $1200. 3. Suppose that the values of the memory $1800, Mem [$1800] = $E7 and C bit in CCR = 1. Compute the new contents of Mem [$1800] and the C flag after the execution of the instruction LSR $1800. : Original value : New value 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 1 b7 b0 C b1 b2 b3 b4 b5 b6 0 : Original value : New value 1 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1 : New value : Original value 1 1 1 0 0 1 1 1 1 1 1 0 1 0 1 1 1
4. Suppose that the values of the memory $1000, Mem[$1000] = $ED and C bit in CCR = 0. Compute the new values of Mem[$1000] and the C flag after the execution of the instruction ASR $1000. : Original value : New value 1 1 1 1 0 1 1 0 1 0 1 0 1 1 0 1 1 1
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help