0% found this document useful (0 votes)
24 views116 pages

CO Notes

computer organization

Uploaded by

Emaad Ali Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views116 pages

CO Notes

computer organization

Uploaded by

Emaad Ali Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 116

Unit 1

PART-A
1
2

Functions of interruprt routines ???


6

7)
8
List the various types of computers and list any two features of each
type of computer (Covered in part B)
Briefly define generations of computers (Covered in part B)
PART-B

all devices send their interrupt-requests over a single control line


in the bus
This information is available in the status register of the device
requesting an interrupt
The status register of each device has an IRQ bit which it sets to 1
when it requests an interrupt
Write short notes on buses of a computer.
Unit 2
VIRTUAL MEMORY (Covered in LAQ)
8. What is page fault. (2M)
9. What is page replacement algorithm.
10. What is locality of reference. (Covered in question 2)
PART B
Discuss metrics to measure performance of System (OR) Discuss about
the performance equation.
UNIT –III
PART-A
1. Differentiate between Direct addressing mode and indirect addressing

mode with example. (2M)

2. Write an assembly language program to add two 8 bit numbers.(3M).


3. Explain the address capability of 8085 as 64 KB.( 2M )

The memory address range is from 0000H … FFFFH.

4. Write an ALP to multiply two 16-bit numbers with an example.(2M ).


5. Draw the flag register in 8085? Describe it. (3M )
6. What is the role of RLC instruction in 8085? (2M )

7. Write about general purpose registers in 8085. ( 3M )

8. What is the role of RAL instruction in 8085? (2M )


9. Explain the following 8085 Instructions.(3M )

i) ADD C

ii) ANI 50H

iii) LXI D, 8100


10. Write ALP to perform subtractions of the 8 bit numbers using 2’s

complement.(2M )

11. Explain the function of ALE and IO/M signals in the 8085

architecture(3M )

ALE – It is an Address Latch Enable signal. It goes high during first T state of a machine cycle and en
ables the lower 8-bits of the address, if its value is 1 otherwise data bus is activated.

IO/M’ – It is a status signal which determines whether the address is for input-output or memory.
When it is high(1) the address on the address bus is for input-output devices. When it is low(0) the ad
dress on the address bus is for the memory.

12. What is meant by TRAP? (2M )


13. Describe DAA instruction with example. (3M )

The DAA (Decimal Adjust after Addition) instruction allows addition of numbers represented
in 8-bit packed BCD code. It is used immediately after normal addition instruction operating
on BCD codes. This instruction assumes the AL register as the source and the destination,
and hence it requires no operand.

14. Write about rotate instructions. (3M)

ROTATE is a logical operation of the 8085 microprocessor. It is a 1-byte instruction. This instruction
does not require any operand after the opcode. It operates the content of the accumulator and the
result is also stored in the accumulator. The Rotate instruction is used to rotate the bits of
accumulator.

Types of ROTATE Instruction:

Rotate accumulator left (RLC),

Rotate accumulator left through carrying (RAL),

Rotate accumulator right (RRC),

Rotate accumulator right through carry (RAR).


PART-B

1. Write an assembly language program to multiply two 8 bit numbers (5M )

2. List the logical instructions and Data transfer instructions in detail of 8085.
(5M )
3. Explain the internal architecture of the 8085 microprocessor.(10M )
4. Write an ALP to multiply two 16-bit numbers with an example.(10M )
5. Write an ALP to perform the division operation of two numbers (8-bit).(7M )

6. List addressing modes of 8085 microprocessor and explain.(3M )

Types of addressing modes –

In 8085 microprocessor there are 5 types of addressing modes:

1.Immediate Addressing Mode –

In immediate addressing mode the source operand is always data. If the data is 8-bit, then the
instruction will be of 2 bytes, if the data is of 16-bit then the instruction will be of 3 bytes.

Examples:

MVI B 45 (move the data 45H immediately to register B)

LXI H 3050 (load the H-L pair with the operand 3050H immediately)

JMP address (jump to the operand address immediately)

2.Register Addressing Mode –

In register addressing mode, the data to be operated is available inside the register(s) and register(s)
is(are) operands. Therefore the operation is performed within various registers of the
microprocessor.

Examples:

MOV A, B (move the contents of register B to register A)


ADD B (add contents of registers A and B and store the result in register A)

INR A (increment the contents of register A by one)

3.Direct Addressing Mode –

In direct addressing mode, the data to be operated is available inside a memory location and that
memory location is directly specified as an operand. The operand is directly available in the
instruction itself.

Examples:

LDA 2050 (load the contents of memory location into accumulator A)

LHLD address (load contents of 16-bit memory location into H-L register pair)

IN 35 (read the data from port whose address is 35)

4.Register Indirect Addressing Mode –

In register indirect addressing mode, the data to be operated is available inside a memory location
and that memory location is indirectly specified by a register pair.

Examples:

MOV A, M (move the contents of the memory location pointed by the H-L pair to the accumulator)

LDAX B (move contents of B-C register to the accumulator)

STAX B (store accumulator contents in memory pointed by register pair B-C)

5.Implied/Implicit Addressing Mode –

In implied/implicit addressing mode the operand is hidden and the data to be operated is available
in the instruction itself.

Examples:

CMA (finds and stores the 1’s complement of the contents of accumulator A in A)

RRC (rotate accumulator A right by one bit)

RLC (rotate accumulator A left by one bit)

7. Explain the programming model of 8085 microprocessor. (5M Jun 14)

8085 Programming Model


1. Registers
 The 8085 has six general purpose registers to store 8 bit data; these are
identifies as B, C, D, E, H, L.
 They can be combined as register pairs - BC, DE and HL to perform some
16-bit operations.
 The programmer can use these registers to store or copy data into the
registers by using data copy instructions.

2. Accumulator
 The accumulator is an 8-bit register that is a part of arithmetic/logic
unit(ALU).
 This register is used to store 8-bit data and to perform arithmetic and
logical operations.
 The result of an operation is stored in the accumulator.
 The accumulator is also identified as register A.

3. Flags

Bit positions of various flags in the flag register of 8085


 8085 has five flag registers:-
- Sign Flag (S): Sets or Resets based on the result stored in the accumulator.
If the result stored is positive, the flag resets else if the result stored
is negative the flag is set.

- Zero Flag (Z): Sets or Resets based on the result stored in the accumulator.
If the result stored is zero the flag is set else it is reset.

- Auxiliary Carry Flag(AC) : This flag is set if there is a carry from low nibble(lowest
4 bits) to high nibble(upper 4 bits) or a borrow from high nibble to
low nibble, in the low order 8-bit portion of an addition or
subtraction operation.

- Parity Flag (P): This flag is set if there is even parity else it resets.

- Carry Flag (CY): This flag is set if there is a carry bit else it resets.
4. Program Counter (PC)
 This 16-bit register deals with sequencing the execution of instructions this
register is a memory pointer.
 Memory locations have 16 bit addresses and that is why this is a 16 bit
register.
 The function of the PC is to point to the memory address from which the
next byte is to be fetched.
 When a byte(machine code) is being fetched, the program counter is
incremented by one to point to the next memory location.

5. Stack Pointer (SP)


 The stack pointer is also a 16-bit register used as a memory pointer.
 It points to a memory location in R/W memory called stack.
 The beggining of the stack is defined by loading 16-bit address in the stack
pointer.
8. Discuss about 8085 instruction set. (5M Jun 14)

(examples covered in 2nd question)


9. Explain 8085 pins in detail.(5M )
10. Write ALP for

i) Greatest and smallest of n numbers

ii)Sorting

iii)Add N numbers.

11. Explain about internal operations of 8085. (5M)


12. Timing diagram of

i)STA
ii) LDA

iii)IN

iv) OUT
UNIT-4
1)
2)Write the usage of stacks.

3)
4)
5)

6)List the instructions used for 8085 interrupts.


7)

8)
9)What is DAC ? (Covered in part B)

10) What is ADC ? Covered in part B)


PART B
1)Illustrate interface keyboard and seven-segment display.
4)
UNIT-5

1) Write about the modes of transfer in 8251.


2)
3)
4)

Write the Functions of 8253 .


6)
7) 7. Write about modes of 8251.

PART-B
1)
2) What are the advantages and disadvantages of RS232 series of protocols.
3)
4)
5. Illustrate interface keyboard and seven-segment display
6)
List the major components of 8259A interrupt controller and explain their
functions (Covered in U4)

What is the role of 8253 and its functions

Explain CWR of 8255 (PPI) in both BSR and I/O mode

What are the advantages and disadvantages of IEEE 488.

You might also like