Microprocessors

Microcomputers systems
Assignment

(a) Write a program to configure port 1 of 8051 microcontroller , in order to make it as input port and output. (10 mks)

(b) Which of the following instructions is a correct assembly instruction and which is not? why? Correct if possible ? (10 mks)
MOV CS, 1234
PUSH AL
MOV AL, [SI+DI]
MOV AL, [BX]
MOV AL, BX
MUL [0100]

(c )By use of sketch, show how 74LS138 IC (decoder) can select interfaced memories. (5 mks)
(d) Translate the following c program code into assembly:- (5mks)

If (AX<BX) {
AX++;
DX=DX*2;
CX=CX-AX
}else {
BX=CX;
};