You are on page 1of 6

2021/2022 RAIN SEMESTER EXAMINATIONS

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING


ECE 445: ASSEMBLY LANGUAGE

JESTION ONE b. (i) Descrbe briefly, the TWO programming components


(4 marks).
Explain in details the following as related to of an assembly language. formats of an
Microcomputer programming language: () Machine (i) Write short notes on the instruction
(4 marks)
assembly language.
Language () Assembly Language (ii) High Level data byte located at offset
(7-marks) c. () Write a program to add a data byte
Language. 0500H in 2000H segment to another
i). Explain the functions of Assembler Directive in segment and store
available at 0600H in the same
programming language. Hence, name the four (4) fields segment. (4 marks)
the result at 07OOH in the same
in which each line of assembly language program program to load an
(6 marks) (ii) Write an assembly language value "MACRO invert
depends. accumulator with a constant
What is the purpose of operation code (OP code) field
value" (3;marks)
and Operand or Address of operand field in Assembly
language program. (2;marks) QUESTION FOUR
Explain the following instruction formats of machine (2 marks).
) a.()(a). Add +9 and -4 on a5 bits (2 marks).
sembly language with examples. (B). Add -9 and +4 on a 5 bits
machine
a) Zero-address instruction format. (2 marks) representation? Hence, compare
(2 marks) (ii) What are Unsigned Mag., 1's, 2's
the integer arithmetic forms of Sign's (4 marks).
p) Two address instruction format.
i) A set of data (byte) is stored in a table whose starting and Unsign representation.
address is given as MYTABLE. The data in the table What are Floating point numbers? Hence,
state the
b. ()
terminated by ASCII character 'A'. Write a 68000 two sizes of hardware floating point and
program to find the highest data in the table. The differentiate between them. (4 marks).
highest data and its location should be stored in location of RISC? (3marks)
(ii) What are the characteristics
MAXDATAand MAXLOC, respectively. (3marks). c. State the characteristics of the following Floating
format.
JESTION TWO
() F_floating format (2 marks).
),Explain in details, why modern power systems use a (2 marks).
(ii) 32 bit floating formot
binary or two's complement number instead of nume.ric (ii) 40 bit floating format (2 marks).
values? Hence, convert this binary value 11001010 to (iv) D_floating format (2 marks).
numeric number. (4 narks)
What are Octal Numbering systems ? Hence, state the
QUESTION FIVE
merits of this numbering system with examples.(4 marks)
State the two features of hexadecimal Number. a. (i) State FOUR reasons why MC68000 is so desirable in
assembly language programming. (4 marks).
Hence, list the steps involved in coverting a binary
number to hexadecimal format. (4marks) (i) State the FOUR basic fields present in Assembly
Language instruction. (4 marks).
i) Differentiate between the folowing computer assembly
terms: Encoding, Code and Straight Binary Coding. b.(i) List the TWO essential assembly language program
conversion techniques and write short notes on them.
(4 marks)
(6) List and explain the three methods of Encoding. (4 marks).
(ii) State the various qualities of a good assembly language
(3-marks) (33marks)
programmer
i) State the two reason why BCD is not oftenused in
modern high speed digitalsystem?. Hence,convert HELP c.(i) Write a 68000 program to clear 100 base 10
consecutive bytes starting from location 3000H (4 marks).
to binary using EBCDIC coding system. (4 marks)
(i) Write a 68000 program segment to transfer 500 bytes
JESTION THREE of data from memory location named TABLE 1 to another
What are Program Control Instructions?. Hence memory location named TABLE 2. (4 marks).
state the THREE basic groups of programming
instructions. (5 marks).
() State the difference(s) between Input/Output
Instructions and Input/Output Operation. (3 marks).

2
THEPENALTY FOR EXAMINATION MALPRACTICE IS DISMISSAL

MATRICULATION NUMBER
SEMESTER EXANMINATIONS
2020/2021 HARMATTAN

Question One
(3marks)
Differentiate between microprocessor and microcontroller.
b. Briefly explain the following terminologies. (Smarks)

iii. Nibble iv Data


i Bit ii Byte
V. Addressability
the function
ci. Give a diagram showing the basic functional blocks of a microprocessor and explain
of each block. (6½ marks)
ci. Draw a diagram of the pin configuration of Intel 8086 Microprocessor. (3marks)
Question Two
a.
Explain the working principle of a microprocessor. (3marks)
b. Ilustrate in tabular form, the bus status signal of Intel 8085 Microprocessor. (3maks)
ci Explain the classification of works that can be done by the Microprocessor. (4 ½ marks)
cii. Complete this table. (7marks)
Mnemonic Size of instruction Clock period (t-state) |Number, of memory
(number of byte) needed for instruction access
execution

MØV reg, data


MØVAX, men

ADD AL, data16

MOVmem, reg l

MOV regl, reg2

he func fning t Mueo we Cmtaus

2
THE PENALTY FOR EXAMINATION MALPRACTICE IS DISMISSAL

MATRICULATION NUMBER...
2020/2021 HARMATTAN SEMESTER EXAMINATIONS

Question Three
a
Explain the function of these 8086 Microprocessor units. (4marks)
i Bus interface unit ii. Execution unit

b. Give a diagram showing the internal blocks of a microprocessor based system


(microcomputer). (4marks)
ci. Complete the table below. (2 ½ marks)
Machine cycle of 8086 Number of T-states
microprocessor
Memory read cycle
IOread cycle
Memory write cycle
OI write cycle
Interrupt cycle

cii. Give the timing diagram depicting signals involve in reading a word (16-bit) by 8086
Microprocessor starting from the even address of the memory in minimum mode. (7marks)
Question Four
a. What do you understand by the words pipeline architecture in microprocessor? (2 ½ marks)
b. Highlight the machine cycles of Intel 8086 microprocessor and explain the function/s perform by
the processor at each cycle. (5 marks)
ci. Explain with the aid of diagram, the process of de-multiplexing address/data lines of 8086
Microprocessor. (Smarks)
cii. Differentiate between intra-segment call (near call) and inter-segment call (far call) of 8086
Microprocessor. (Smarks)

3
THE PENALTY FOR EXAMINATION
MALPRACTICE IS DISMISSAL
MATRICULATION NUMBER--
EXAMINATIONS
SEMESTER
<020/2021 HARMATTAN

Question Five (2marks)


a What is instruction cycle? marks)
diagram, show the internal architecture of 8086 Microprocessor. (3 2
b. Withthe aid of waveforms. (2marks)
8086 using digital
ci. Ditferentiate between one t-state of 8085 and that of
of 8086 Microprocessor and give two
cii. Mention and explain any five (5) addressing modes
(10marks)
examples of instruction for each.
Question Six
a.
Difference between machine level language and assembly level language. (4marks)
following instructions is
b. Show how the memory address of the source operand for each of the
calculated. (4marks)
MOVCX, [BX]
ii. MOV DX,[089DH]
ci. Explain the process of interrupt acknowledgement cycle of 8086 Microprocessor. (4 ½ marks)
cii. Write an assembly language program to add two numbers of 16-bit data. (5marks)

4
THEPENALTY FOR EXAMINATION MALPRACTICE IS DISMISSAL.
MATRICULATION NUMBER-..
2021/2022 HARMATTAN SEMESTER EXAMINATIONS
ECE445: ASSEMBLY LANGUAGE PROGRAMMING
QUESTION ONE
ai. What is a microprocessor? (1 ½ marks)
aii. Explain the working principle of a microprocessor. (4 marks)
bi. What is de-multiplexing? (2 marks)
bii. With the aid of a suitable diagram explain the process of de-multiplexing address/data lines of
8085 microprocessor (6 marks) X
ci. Differentiate between the three (3) types of buses. (4 ½ marks
cii. Write down six (6)characteristics of fifth generation microprocessor. (3 marks) X
d. What is a microcontroller? (2marks)
e.
Draw a diagram showing the basic functional blocks of a microprocessor and explain the
function of each block. (7marks
QUESTION TWO
ai. What is an interrupt? (2marks)
aii. Explain the classification of works that can done by the microprocessor. (6marks)
bi. What is machine cycle? (2marks)
bii. Produce a diagram to depict the pin configuration of 8085 microprocessor, (Smarks)
C.
Produce a diagram showing the iternal architecture of 8085-microprocessor. (5 marks)
QUESTION THREE
ai. What is pipeline architecture? (2 marks)
aii. Differentiate between the two functional units of 8086 microprocessor. (3marks) «
bi. Give the name ofthe four (4) 16bits segment register of 8086 microprocessor, hence briefly
explain their functions. (Smarks) X
bii. With the aid of suitable diagram, explain the process of de-multiplexing address/data lines of
8086 microprocessor. (7 ½marks
C. Complete the table below. (2 ½ marksó
Machine cycle of 8086microprocessor Number of T-states

2
THE PENALTY FOR EXAMINATION MALPRACTICE IS DISMISSAL
MATRICULATION NUMBER
2021/2o22 HARMATTAN SEMESTER EXAMINATIONS
ECE445: ASSEMBLY LANGUAGE PROGRAMMING
Memory read cycle
I0 read cycle
Memory write cycle
OI write cycle
Interrupt cycle

QUESTION FOUR
a. Explain the function of the following assembly language programming toOls. (5marks)
iii. Emulator
i Simulator ii Debugger
iv. Linker V. Library builder
bi. Differentiate between the data transfer instruction and processor control instruction of 8086
hsE shp so keh (3marks)
microprocessor.
bi. Differentiate between the bus status signals of 8085-microprocessor in tabular form.(5marks
C. Complete this table. (7 marks)

Mnemonic Size of ihstruton Clock period (t-state)| Number of memory


(number of byte) needed for instruction access
execution
MOV reg, data
MØV AX, mem
ADD AX, datal6
MOV mem, regl
MOV regl, reg2

QUESTION FIVE
ai. Differentiate between the three (3) levels of programming. (ómarksy mgh
aii. What is addressing mode? (2mark)
b.
Briefly and explain the property of the following addressing mode and give one example for
cach.
Immediate addressing mode Register addressing mode
iii. Direct addressing mode i te ly. Relative addressing mode
16-bit data.
C Write an 8086 assembly language program to add twO numbers of (4marks)

IS DISMISSAI
THEPENALTY FOR EXAMINATTON MALPRACTICE
MATRICULATION NUMBER.

You might also like