Professional Documents
Culture Documents
Solution Assignment 1 CS!) ! 2021
Solution Assignment 1 CS!) ! 2021
Question No 1
2. Write down the bit pattern (in hexadecimal) at memory address F3 when the
Halt instruction is executed.
Answer: Bit pattern at memory address F3 is 0705.
3. How many times the machine instruction at address EE is executed before the
machine halts.
Answer: At address EE, the machine instruction is executed 7 times.
Answer:
1 01 1 0 0 . 0 0 0 1 20 (1/6)
0 0 1 1 1 . 0 1 0 0 7 (1/4)
1 1 0 1 1 0 1 0 1 27 (5/16)
b. Convert the following binary number into ASCII code and then into its equivalent decimal
representation.
01001001010000010100110101011100
Answer: Consulting the appendix A of the book, following table is made which answers
the question.