You are on page 1of 1

CUIT401 Individual Assignment

Due Date 1 December 2020

1. Describe the action taken by 8086 microprocessor when INTR pin is activated.
2. Implement an array of five 8-bit data values and
a) Find the largest value and store in register al.
b) Find the smallest value and store in register bl.
c) Find the average and store the value in dl
3. Use examples to explain how the following assembler directives used in 8086
a) .DATA
b) .CODE
c) EQU
d) DW
e) ORG
f) INCLUDE
4. With the aid of an example distinguish between near call and far call in the context of
subroutine calls.
5. Draw a block diagram showing the main components of a single chip microcontroller. Label the
following components:
a) Timer
b) RAM
c) CPU
d) ROM Serial Port
e) ADC
6. Convert the following high level language structures to assembly language: (assume all variables
are two byte signed integers)
a. IF (X=Y) then A = B;
b. IF (X <= Y) then X = X + 1 ELSE Y = Y - 1;
c. IF NOT ((X=Y) and (Z <> T)) then Z = T else X = T;
d. IF (X=0) and ((Y-2) > 1) then Y = Y - 1;

You might also like