OS_Wipro_Lab Sheet-01 | PDF | Central Processing Unit | Computing
100% found this document useful (1 vote)
22 views

OS_Wipro_Lab Sheet-01

Uploaded by

tapaskumarbal85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
22 views

OS_Wipro_Lab Sheet-01

Uploaded by

tapaskumarbal85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Department of Computer Science and Information Technology

Operating System: SSWTZC364/ CSIWZC364/ SEWIZC364


Lab Work Sheet-01
1. Objective:
At the end of this lab session, students will be:
a) Understand various views present in the OS simulator.
b) Load the programs into the CPU simulator’s memory.
c) Create processes from programs in the OS simulator.

2. Prerequisite:
a) Refer to the video capsules available in in eLearn Portal’s Labware page.

3. Important Instructions:
a. Experiments should be conducted on the BITS Nuvepro Cloud Lab only.
Experiments conducted outside this lab platform will not be evaluated.
b. Instructions on how to access and use the Nuvepro Cloud lab platform are
available in the document “Steps to access cloud-based CS/IS virtual lab.pdf”.
c. While using the Nuvepro Cloud, save all your work in the Persistent folder,
which is available on the desktop. (Important Note: Always take backup of this
folder.)
d. The completed worksheet should be uploaded in Taxila (elearn) portal only.
The last date for uploading the document is 29-Dec-2024.
e. This worksheet/lab activity carries 2.5% (05 Marks) of weightage.
f. Refrain from copying or sharing documents with others. Any evidence of such
practice will attract severe penalties.
g. Any queries related to LAB Activities should be asked only through eLearn
portal under discussion forum. Use the below mentioned link to access the
same:
Section Discussion Forum Link
SEWIZC364 https://taxila-aws.bits-
pilani.ac.in/mod/forum/discuss.php?d=74638
SSWTZC364 https://taxila-aws.bits-
pilani.ac.in/mod/forum/discuss.php?d=74640
CSIWZC364 https://taxila-aws.bits-
pilani.ac.in/mod/forum/discuss.php?d=74641

1
4. Lab Exercise:
The lab exercise consists of two problems statement. For all the programs
that is used, the program name should reflect your <ID number> as
directed. Programs names without your ID number will fetch zero marks.

Problem Statement 1: Execute the following program, which computes the


average of two numbers in the CPU simulator. Refer to Lab Sheet 1.2 -Introduction
to CPU-OS simulator.
Write Program Name as your <ID Number> and provide base
address value 100
MOV #5, R00
MOV #4, R01
ADD R00, R01
MOV R01, R02
DIV #2, R02
STB RO2, 02
HLT

Answer the following questions: [0.5 Marks each]


1) Present the snapshot of the program entered in the CPU simulator.
2) What is the program's starting address (State both physical and logical
address)?
3) How many bytes of memory are required to store this program?
(Hint: HLT is 1 byte instruction)
4) Run the program and present the snapshot that shows the content of various
registers used in the program.
5) Run the program, write the outcome of the program? Which register holds the
result?

2
Problem Statement 2: Compile the following source code and load it in the
main memory. Replace <name> with <PB2_ID Number>. Refer to Lab Sheet 1.3 -
Introduction to Compiler Simulator.

program <name>
i=5
for n = 1 to 10
y=i*n
next
end

Answer the following questions: [0.5 Marks each]


1) Give the snapshot PROGRAM SOURCE (INPUT) Window of the compiler
simulator.
2) Give the snapshot of the PROGRAM CODE (OUTPUT) window of the compiler
simulator.
3) Give the snapshot of the COMPILER PROGRESS Window of the compiler
simulator.
4) Run the program and give a snapshot of the various registers used in the
program.
5) Write the name of register which holds the value of ‘y’ along with screenshot.

5. Submission Guidelines:

A PDF containing the solution for the above two problem statements has to be uploaded to
the “eLearn Portal only.” The name of the file should be your <ID Number>.pdf

You might also like