Microprocessor · Digital Electronics · GATE EE
Marks 1


Marks 2
In a given 8-bit general purpose micro-controller there are following flags.
C-Carry, A-Auxiliary Carry, O-Overflow flag, P-Parity (0 for even, 1 for odd)
R$$_0$$ and R$$_1$$ are the two general purpose registers of the micro-controller.
After execution of the following instructions, the decimal equivalent of the binary sequence of the flag pattern [CAOP] will be _________.
MOV R0, +0x60
MOV R1, +0x46
ADD R0, R1

At the end of program, register $$A$$ contains

The interfacing circuit makes use of $$3$$ line to $$8$$ line decoder having $$3$$ enable lines $${E_1}\,\,\overline E {}_2,$$ $$\,\overline E {}_3$$. The address of the device is
$$\eqalign{ & LXI\,\,\,\,\,\,\,\,\,\,\,\,\,D\,\,\,DISP \cr & LP\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,CALL\,\,\,SUB \cr} $$
It is desired that control be returned to $$LP+DISP+3$$ when the $$RET$$ instruction is executed in the subroutine. The set of instructions that precede the $$RET$$ instruction in the subroutine are
Note:
$$(R)$$ means content of register $$R$$
$$\left( {\left( R \right)} \right)$$ means content of memory locating pointed by $$R$$
$$PC$$ means Program Counter
$$SP$$ means Stack Pointer
$$\eqalign{ & XRA\,\,\,A \cr & MVI\,\,\,B\,\,\,F0\,\,\,H \cr & SUB\,\,\,B \cr} $$

The contents of stack pointer $$(SP),$$ program counter $$(PC)$$ and $$(HL)$$ are $$270H,$$ $$2100H$$ and $$0000H$$ respectively. When the following sequence of instructions are executed,
$$2100H:$$ $$DAD$$ $$SP$$
$$2101H;$$ $$PCHL$$
The contents of $$(SP)$$ and $$(PC)$$ at the end of execution will be

Suppose Register contains the $$2's$$ complement number $$11010110.$$ If this number is delivered by $$2$$ the answer should be

Such a division can be correctly performed by the following set of operations

How many times $$DCR$$ $$L$$ instruction will be executed?
$$\eqalign{ & LXI\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,H,\,\,\,1FFE \cr & MOV\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,B,\,\,\,M \cr & INR\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,L \cr & MOV\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,A,\,\,\,M \cr & ADD\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,B \cr & INR\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,L \cr & MOV\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,M,\,\,\,A \cr & XRA\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,A \cr} $$
On completion of the execution of the program, the result of additional is found.
$$\eqalign{ & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,MVIA,\,\,10H \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,MVIB,\,\,10H \cr & BACK:\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,NOP \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,ADD\,\,B \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,RLC \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,JNC\,\,BACK \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,HLT \cr} $$
The number of times that the operation $$NOP$$ will be executed is equal to
$$\eqalign{ & PUSH\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,PSW \cr & XTHL \cr & PUSH\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,D \cr & JMP\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,FC70H \cr} $$