The More I Help Others To Succeed, The More I Succeed

CS101 Assignment 1 Solution 2021 Spring

Assignments 451
CS101 Assignment 1 Solution 2021 Spring

CS101-Introduction to Computing

Assignment No.  1
Semester: Spring 2021

Question No 1

Given is a snapshot of memory addresses E2 to F4 and CPU registers 0 to F. All bit patterns in the memory cells are represented in hexadecimal notation.

CS101 Assignment 1 Solution 2021 Spring
CS101 Assignment 1 Solution 2021 Spring

Assume that the Program Counter has E2 as its initial value. Using the information provided in the above Figure 1, answer the following questions.

  1. Determine the contents of register 1 when the machine halts.
  • Write down the bit pattern (in hexadecimal) at memory address F3 when the Halt instruction is executed.
  • How many times the machine instruction at address EE is executed before the machine halts.
  • Determine the contents of register 0 after the instruction at address EC is executed.
  • Determine the contents of register 2 when the instruction at address F0 is executed. Note: Use the table provided in Appendix C at page 581 of book.

Solution :

  1. Determine the contents of register 1 when the machine halts.

Question No 2

  1. Perform binary addition on given numbers:

20 161 and 7 14.

  • Convert the following binary number into ASCII code and then into its equivalent decimal representation.

01001001010000010100110101011100

Downloads

CS101 Assignment 1 Solution 2021 Spring

#CS101 Assignment 1 Solution 2021 Spring

Download CS101 Assignment 1 Solution 2021 Spring File

For More Assignment Details

2 Comments

  1. Jazak Allah

  2. Cs607 cs501 Sta301 gdb Cs101 eng101 pak301 mth302 cs202 cs201 cs507 cs614 cs408 cs302 cs605 cs606 cs604 cs403 cs402 mth101 mth102
    All these assignments available on this website and its totaly free

Leave a Reply

Your email address will not be published. Required fields are marked *

Be silent and let your success shout