Uploaded by akashdoley13


End-Semester Examination, Spring 2021
CO215: Computer Architecture & Organization Lab
Full Marks: 25
Time: 90 mins
Figures in the right hand indicate marks for the individual questions
1. Define a data segment consisting of a constant of value 20, an uninitialized array of 5
locations of 2-byte each, and a string “Hello World” such that there is new line between
Hello and World. (Code segment is not necessary.)
2. Write the instructions to compute x mod 5 and store the answer in x. Here, x is a 2-byte
variable in memory. (Data segment is not necessary.)
3. Write a complete 8086 program (with code and data segments) that reads a string of
characters from the user (terminated by ‘.’) and counts the number of uppercase letters in
the string.