What would be the value of register AL after the execution of the following assembly language program of 8086 ? AL = 53, CL = 29
ADD AL, CL
DAA
82
The two instructions perform a packed-BCD addition: 53 plus 29 in decimal is 82, and DAA is what makes the binary hardware produce that answer.
Step 1 — the binary addition. The values are packed BCD, so each nibble holds one decimal digit.
\(53_{H}+29_{H}=7C_{H}\)
Checking nibble by nibble: \(3+9=12=C_{H}\) in the low nibble with no carry out, and \(5+2=7\) in the high nibble. The processor has done ordinary binary arithmetic and produced 7C — which is not valid BCD, since C is not a decimal digit. This is why option 1 is offered: it is the answer before the adjustment.
Step 2 — what DAA does with it. The rule is applied to each nibble in turn:
| Test | Action | Here |
|---|---|---|
| Low nibble > 9, or AF = 1 | Add 06H, set AF | C > 9, so add 06 |
| High nibble > 9, or CF = 1 | Add 60H, set CF | 8 is not > 9, no CF — no action |
\(7C_{H}+06_{H}=82_{H}\)
The high nibble is now 8, which is a legal digit and no greater than 9, so the second rule does not fire. AL = 82H — option 2, reading directly as the decimal answer 82.
Why adding 6 is the right correction. A nibble counts in sixteens but a decimal digit counts in tens, so whenever a digit sum passes 9 the binary result is short of a decimal carry by exactly \(16-10=6\). Adding 6 pushes the nibble past 16, which both generates the carry into the next digit and leaves the correct remainder behind. Here \(C+6=12_{H}\) gives a carry of 1 into the high nibble and a 2 left in the low nibble — exactly the decimal digits of 82.
Why the other options are wrong. Option 3, DC, would follow from adding 60H instead of 06H — adjusting the wrong nibble. Option 4, E8, comes from adding 66H, applying both corrections when only one was needed.
The point of packed BCD is that the digits can be read out directly for a display or printed record without any binary-to-decimal conversion, which is why it survives in calculators, tills and real-time clock chips.
Hence, AL = 82.
| $D_7$ | $D_6$ | $D_5$ | $D_4$ | $D_3$ | $D_2$ | $D_1$ | $D_0$ |
In 8255 programmable peripheral interface device, if the port A and port B are to be set in a hand shake mode along with port C, what are the bits in the 8 bit control word to be set as 0 1 0.
The number system for the machine code of the microprocessor 8085 is
Which of the options in a multipurpose instruction used to implement the interrupt of 8085 and serial data input ?
Both 8155 and 8255 programmable peripheral interface ICs have the following common features :
(i) Programmable I/Os
(ii) Either port A or Port B can be set as either input or output ports.
(iii) One 14-bit down counter
(iv) AD0 – AD7 are multiplexed address/datalines.
Each instruction in an assembly program has the following fields :
(i) Lable field
(ii) Operand field
(iii) Comment field
(iv) Mnemonic field
Please write the proper sequence of fields :
The mnemonic of 8085 processor indicate :
| List – I | List – II |
| a. RLC | i. Rotate Accumulator Right through carry |
| b. RRC | ii. Rotate Accumulator Left through carry |
| c. RAR | iii. Rotate Accumulator Left |
| d. RAL | iv. Rotate Accumulator Right |
Codes :
Match the following :
| List – I (Pin terminals) | List – II (Applications) |
| a. SID, SOD | i. Wait state |
| b. READY | ii. Serial data transfer |
| c. TRAP | iii. Address Latch Control |
| d. ALE | iv. Interrupt |
Codes :
Assertion (A) : In serial communication system, when the transmission of data goes in both ways, it is called full-duplex system. Now if two micro processors are connected in full duplex mode, the amount of data transmitted will be double to the amount of data in half-duplex mode connection.
Reason (R) : When the transmission of data goes in one way, it is called half-duplex system and when the data moves in both ways, it is called full duplex system.
The assembler directive used to give name to some value or symbol for 8086 ASM-86 is
Which of the following peripherals provide I/O facilities ?
i. 8279
ii. 8155
iii. 8259
iv. 8255
An 8086 address bus is a/an _____ -bit bus
Match the columns.
Pin | Description |
a. D 0-D 7 | 1. Reset Input |
b. RESET | 2. Data Lines |
c. A 0,A 1 | 3. Internal Address |
An 8 bit microcontroller has an external RAM with the memory map from 8000 H to 9FFF H. How many number of bytes can this RAM store?
In 8085 microprocessor, initially the number decimal 8 is stored. If instruction RAL is executed twice on this number, the final number stored will be
Which of the following 8085 microprocessor instructions occupies 3 bytes in memory?