Specify the contents of the accumulator and the status of the S, Z and CY flags when 8085 microprocessor performs addition of 87 H and 79 H.
00, 0, 1, 1
In binary, 87 H = 1000 0111 and 79 H = 0111 1001.
Adding: \(1000\,0111 + 0111\,1001 = 1\;0000\,0000\), i.e. 87 H + 79 H = 100 H. The 8-bit accumulator keeps only the lower byte, so A = 00 H and the ninth bit goes into the carry flag.
CY = 1 because there is a carry out of bit 7. Z = 1 because the accumulator is 00 H. S = 0 because bit 7 of the result is 0.
So the accumulator holds 00 and S, Z, CY = 0, 1, 1.
Hence, the answer is 00, 0, 1, 1.
Match the following 8085 instructions with the flags :
| List – I | List – II | ||
| a. | XCHG | i. | only carry flag is affected. |
| b. | SUB | ii. | no flags are affected. |
| c. | STC | iii. | all flags other than carry flag are affected. |
| d. | DCR | iv. | all flags are affected. |
Codes :
a b c d
How many times will the following loop be executed ?
LXI B, 0007 H
LOP : DCX B
MOV A, B
ORA C
JNZ LOP
One of the main features that distinguish microprocessor from micro-computers is
What will be the output at PORT1 if the following program is executed ?
MVI B, 82H
MOV A, B
MOV C, A
MVI D, 37H
OUT PORT1
HLT
Which of the following 8085 microprocessor hardware interrupt has the lowest priority ?
In 8085 microprocessor, the digit 5 indicates that the microprocessor needs
In 8085, which of the following performs : load register pair immediate operation ?
The RST 7 instruction in 8085 microprocessor is equivalent to :
8085 microprocessor has _____ hardware interrupts.
Which of the following in 8085 microprocessor performs
HL = HL + DE ?
The magnetic vector potential of an electromagnetic system is given by $ \vec{A}=(y \cos ax) \vec{a_x} + (y+e^x) \vec{a_z}$. The magnitude of the magnetic flux density at the origin is