Model Answer of System Software B. Tech. (4 th Semester Examination) Paper Code: AR Branch: Information Technology

Similar documents
Interrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types:

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

8085 Interrupts. Lecturer, CSE, AUST

Sunday, April 25, 2010

AS-2883 B.Sc.(Hon s)(fifth Semester) Examination,2013 Computer Science (PCSC-503) (System Software) [Time Allowed: Three Hours] [Maximum Marks : 30]

8086 Interrupts and Interrupt Responses:

Microprocessor Architecture

General purpose registers These are memory units within the CPU designed to hold temporary data.

What Are The Main Differences Between Program Counter Pc And Instruction Register Ir

PSD1C SYSTEM SOFTWAE UNIT: I - V PSD1C SYSTEM SOFTWARE

Types of Interrupts:

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

UNIT I. Pune Vidyarthi Griha s COLLEGE OF ENGINEERING, NASHIK-4. 1

CPU Structure and Function

Chapter 1: Basics of Microprocessor [08 M]

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

Basics of Microprocessor

Interrupts. Chapter 20 S. Dandamudi. Outline. Exceptions

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

The Purpose of Interrupt

In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.

These three counters can be programmed for either binary or BCD count.

CPU Structure and Function

Module 5 - CPU Design

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

MACHINE CONTROL INSTRUCTIONS: 1. EI

William Stallings Computer Organization and Architecture. Chapter 11 CPU Structure and Function

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

Digital System Design Using Verilog. - Processing Unit Design

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

27 December 2016 Pramod Ghimire. Slide 1 of 16

B. the address of the data is supplied by the users C. there is no need for an address i.e. the data is used as an address

MLR Institute of Technology

1. Internal Architecture of 8085 Microprocessor

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

MICROPROGRAMMED CONTROL

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

Computer Architecture and Organization. Instruction Sets: Addressing Modes and Formats

Digital IP Cell 8-bit Microcontroller PE80

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

BASIC INTERRUPT PROCESSING

Author : Dalbir Singh, Computer Science Deptt. CPU Structure and Functions. 1. Processor Organization

UNIT I - INTRODUCTION

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,


MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Compiler, Assembler, and Linker

Blog -

Chapter 7 Central Processor Unit (S08CPUV2)

Architecture of 8085 microprocessor

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

Chapter 12. CPU Structure and Function. Yonsei University

The functional block diagram of 8085A is shown in fig.4.1.

ADVANCED COMPUTER ARCHITECTURE TWO MARKS WITH ANSWERS

Introduction to Microprocessor

There are different characteristics for exceptions. They are as follows:

What Operating Systems Do An operating system is a program hardware that manages the computer provides a basis for application programs acts as an int

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

Chapter 3 : Control Unit

A First Look at Microprocessors

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 12 Processor Structure and Function

PESIT Bangalore South Campus

COMPILER DESIGN. For COMPUTER SCIENCE

Major and Minor States

The Assembly Language Level. Chapter 7

7/19/2013. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to: Chapter Objectives 12 1 BASIC INTERRUPT PROCESSING

Chapter 12: Interrupts

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?


Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

4) In response to the the 8259A sets the highest priority ISR, bit and reset the corresponding IRR bit. The 8259A also places

UNIT- 5. Chapter 12 Processor Structure and Function

There are four registers involved in the fetch cycle: MAR, MBR, PC, and IR.

Gechstudentszone.wordpress.com

Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт.

B. V. Patel Institute of Business Management, Computer &Information Technology, UTU

This section covers the MIPS instruction set.

Lecture-15 W-Z: Increment-Decrement Address Latch:

Systems Programming and Computer Architecture ( ) Timothy Roscoe


Microprocessors & Interfacing

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 09, SPRING 2013

Objectives. ICT106 Fundamentals of Computer Systems Topic 8. Procedures, Calling and Exit conventions, Run-time Stack Ref: Irvine, Ch 5 & 8

OPERATING SYSTEMS. Goals of the Course. This lecture will cover: This Lecture will also cover:

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru Department of Electronics and Communication Engineering

COMPILER DESIGN LEXICAL ANALYSIS, PARSING

Instructions Involve a Segment Register (SR-field)

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1

Compiler Design. Computer Science & Information Technology (CS) Rank under AIR 100

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

Transcription:

Model Answer of System Software B. Tech. (4 th Semester Examination) Paper Code: AR-9083 Branch: Information Technology Time Allowed: 3hours Maximum Marks: 100 Part-A (All questions are compulsory) Objective Type Questions (1*10=20Marks) Q.1. is device where information is stored. (a)data (b) Program (c) memory (d) File. Memory Q.2. is a hardware memory device which denotes the location of current instruction being executed (a) Instruction Counter (b) counter (c) templates (d) none of these. Instruction Counter Q.3. Which of the following loader is executed when a system is first turned on or restarted. (a) Boot loader (b) Compile and Go loader (c) Bootstrap loader (d) Relating loader Bootstrap loader Q.4. Nested Macro calls are expanded using the

(a) FIFO rule (First in first out) (b) LIFO (Last in First out) (c) FILO rule (First in last out) (d) None of these Q.5.In this operant form AREA +5(4) here 5 is the. (a) Pointer (b) Displacement (c) coding (d) none of these. Displacement Q.6.The primary function performed by the analysis phase is the building of the. (a) symbol Table (b) hashing (c) Localization (d) none of these. Symbol Table Q.7. expansion implies generation of instruction tailored to the requirements of a specific usage. (a) Semantic (b) next expansion (c) last expansion (d) none of these. Semantic Q.8.A model statement in a macro may constitute a call on another macro, such calls are known as calls. (a) Generated (b) nested (c) first (d) none of these. Nested Q.9. address assigned by the loader (a) load time (b) translate time (c) linked time (d) none of these. Load time. Q.10.Load origin assigned by while loading the program for execution.

(a) Linker, (b) programmer (c) Loader (d) none of these. Loader Short Answer Type Questions (2*5=10Marks) Q.1.What is memory? Fig.1. Memory hierarchy The smallest unit of memory is the "bit". A bit can be in one of two states on vs. off, or alternately, 1 vs. 0. Technically any object that can have two distinct states can remember one bit of information. This has been done with magnets, gear wheels, and tinker toys, but almost all computers use little transistor circuits called "flip-flops" to store bits. The flip-flop circuit has the property that it can be set to be in one of two states, and will stay in that state and can be read until it is reset. Q.2.Define Process?

Fig.2.Process in CPU. A process is an instance of a program running in a computer. It is close in meaning to task,. A process is started when a program is initiated (either by a user entering a shell command or by another program). Like a task, a process is a running program with which a particular set of data is associated so that the process can be kept track of. A process can initiate a sub process, which is a called a child process (and the initiating process is sometimes referred to as its parent). A child process is a replica of the parent process and shares some of its resources, but cannot exist if the parent is terminated. Q.3.Define Compiler?

Fig.3 A compiler is a program that translates human readable source code into computer executable machine code. To do this successfully the human readable code must comply with the syntax rules of whichever programming language it is written in. The compiler is only a program and cannot fix your programs for you. If you make a mistake, you have to correct the syntax or it won't compile. Q.4. what is interrupts in C? Fig.4 An interrupt is a hardware mechanism that enables an external device, typically I/O devices, to send a signal to the CPU. An interrupt signal requests the CPU to interrupt its current activities

and attend to the interrupting device s needs. A CPU will check interrupts only after it has completed the processing of one instruction and before it fetches a subsequent one Q.5.Define intermediate code? Fig.5 An intermediate code is basically governed during the process of conversion from analysis phase to synthesis phase of assembler. And the intermediate code is between translator and code generator. Section B Each Question carries 8 marks. (Long answer type questions 8*5 =40 Marks) Note: Attempt any one questions out of two questions from each unit. Unit 1 Q.1. Explain in detail the following terms (a) Memory Address Registers (b)memory Buffer Registers

Fig.6 Memory address Register (MAR): MAR holds the memory location of data that needs to be accessed. When reading from memory, data addressed by MAR is fed into the MDR (memory data register) and then used by the CPU. When writing to memory, the CPU writes data from MDR to the memory location whose address is stored in MAR. Memory Buffer Registers (MBR): A Memory Buffer Register (MBR) is the register in a computer's processor, or central processing unit, CPU, that stores the data being transferred to and from the immediate access store. It acts as a buffer allowing the processor and memory units to act independently without being affected by minor differences in operation. A data item will be copied to the MBR ready for use at the next clock cycle, when it can be either used by the processor or stored in main memory. Q.2. Explain pointer in detail, its various declaration methods? Pointer is a variable that stores value of address of a variable. Since pointer itself is a variable, it is allocated a memory location. Pointer to pointer is a pointer which points to the address of a pointer. In other words a pointer to pointer has the address of address of a variable.

Consider the declaration, Int i = 3 ; This declaration tells the C compiler to: (a) Reserve space in memory to hold the integer value. (b) Associate the name i with this memory location. (c) Store the value 3 at this location. Example. Meaning of following simple pointer declaration int a=5; int * ptr; ptr=&a; Explanation: About variable a: 1. Name of variable : a 2. Value of variable which it keeps: 5 3. Address where it has stored in memory : 1025 (assume) About variable ptr: 4. Name of variable : ptr 5. Value of variable which it keeps: 1025 6. Address where it has stored in memory : 5000 (assume) Unit 2 Q.1.Explain the types of interrupt in detail?

Fig.7 Interrupts alter a program s flow of control its behavior is similar to a procedure call, interrupts causes transfer of control to an interrupt service routine (ISR), it is also called a handler. Interrupts provide an efficient way to handle unanticipated events. Various Ways of Interacting with I/O Device Fig.8 Types of Interrupt A. Software Interrupt B. Hardware Interrupt

C. Exceptions Interrupt A. Software Interrupt: Software interrupt is basically Initiated by executing an interrupt instruction int interrupt-type,interrupt-type is an integer in the range 0 to255. Each interrupt type can be parameterized to provide several services. For example, DOS interrupt service int 21H provides more than 80 different services; AH register is used to identify the required service under int 21H. As with DOS functions, AH is used to identify the required service. B. Hardware Interrupt: Fig. 9 Hardware interrupts are of hardware origin and asynchronous in nature. Typically it is caused by applying an electrical signal to the Processor chip Hardware interrupts can be Mask able and Non-mask able. C. Exceptions Interrupt: Exceptions Interrupt are divided in to three parts, depends on the way they are reported. Faults and traps are reported at instruction boundaries (a) Faults: It is in the instruction boundaries during which the execution was detected, it restart the instruction, it also detected during div/idiv instruction. (b)traps: Instruction boundary immediately after the instruction during, which the exception was detected. It is not allowing any instruction to restart.

(c) Aborts: Abort interrupt sever errors such as hardware errors, and inconsistent values in system tables. Q.2.Explain in detail the hardware interrupts? Fig. 10 Hardware interrupts are of hardware origin and asynchronous in nature. Typically it is caused by applying an electrical signal to the Processor chip Hardware interrupts can be Mask able and Non-mask able.

Non-maskable interrupt is triggered by applying an electrical signal to the MNI pin of Pentium and Processor always responds to this signal it cannot be disabled under program control. Maskable interrupt is triggered by applying an electrical signal to the INTR (INTerrupt Request) pin of Pentium. Pentium recognizes this interrupt only if IF (interrupt enable flag) is set. Interrupts can be masked or disabled by clearing IF. For hardware interrupts, CPU initiates an interrupt known as acknowledge sequence. CPU sends out interrupt acknowledge (INTA) signal in response, interrupting device places interrupt type number on the data bus. CPU uses this number to invoke the ISR that should service the device (as in software interrupts) Unit 3 Q.1.Explain in detail the advantages of Assembly Languages?

Fig.11 The Primary advantages of assembly language programming vis -a - vis machine language programming arise from the use symbolic operant specification.assembly language holds an

edge over HLL(High level language ) programming. Assembly language programming uses the special instruction support by the CPU. It processes the source statements in a text file to produce a relocate able object file. It produces a source listing (if requested) and provides you with control over this listing. It allows you to divide your code into sections and maintain a section program counter (SPC) for each Section of object code. It defines and references global symbols and appends a cross-reference listing to the source listing (if requested) It also allows conditional assembly It supports macros, allowing you to define macros inline or in a library. Q.2.Describe the specification of Assembler? Ans. Fig.12

The basic specification of Assembler is as followed in four steps. a. Identify the information necessary to perform a task. b. Design a suitable data structure to record the information c. Determine the processing necessary to obtain and maintain the information d. Determine the necessary processing to perform the task. The data structure used during the synthesis phase are symbol table and mnemonic table, and the primery function of analysis phase is the building of symbol table. Analysis Phase. a.isolate the label, mnemonic opcode operand fields of a statement. b.if a label is present, enter the pair in a new enter of a symbol table c.check the validity of the mnemonic opcode d. Perform LC processing Synthesis Phase a. Obtain the machine opcode corresponding to the mnemonic from the mnemonic table. b. obtain the address from the symbol table c. synthesize the machine instruction Unit 4 Q.1.Explain in detail the semantic expansion in macro expansion? Semantic expansion implies generation of instruction tailored to the requirement of a specific usage.

Semantic expansion is characterized by the fact that different uses of a macro can lead codes which differ in number, sequence and opcode instruction. Example. The following sequence of instruction is used to increment the value in memory word by a constant. a. Move the value from the memory word in to a Machine register. b. Increment the value in the machine register. c. Move the new value in to the memory word Q.2.Explain in detail the concept of macro calls? A macro is called by writing a macro name in the mnemonic field of an assembly statement. the macro call has the syntax <macro name>[<actual parameter spec> [,..]] Where actual parameter typically resembles an opcode specification in an assembly language statement. Unit 5 Q.1.Explain the concept of relocation in detail?

Fig.13 Program relocation is the process of modifying the address used in the address sensitive instruction of a program such that the program can execute correctly from the designated are of the memory Relocation is basically consists of a. An address sensitive instruction: A set of absolute address, instruction or data. b. An address constant: A data word which contain the address of sensitive instruction Relocation is the process of shifting the address of memory from static to dynamic binding of memory address of an instruction. Q.2. Explain the concept of Linking in detail?

Fig.14 Linking is basically consist of a. Public definition : a symbol pub_symb defined in a program unit which may be reference in other program units. b. External reference: a reference to symbol ext_symbol which is not defined in the program unit containing the reference.

Linking is the process of binding an external reference to the correct link time address.external reference is said to be unresolved until linking is performed for it. It is said to be resolved when its linking is completed. Finely linking load the executable file in the memory for the further execution of program.