assignment-1
assignment-1
Page 1 of 5
Name:……………. Group:……… Roll No………………
A. 0000H to 7FFFH
B. 0000H to FFFFH
C. 8000H to FFFFH
D. 00000H to FFFFFH
16. ______register is used as a default counter in case of string and loop instructions of 8086.
A. AX B. BX C. CX D. DX
Page 2 of 5
Name:……………. Group:……… Roll No………………
20. LDS instruction in 8086 copies two consecutive words from memory to register and______.
A. ES B.DS C.SS D. CS
21. The instruction that loads the AH register with the lower byte of the flag register is
A. SAHF
B. POPF
C. LAHF
D. PUSHF
A. Minimum
B. Maximum
C. Both a and b
D. Medium
23. If any interrupt will come to 8086, the following event will occur
A. Setting the DF
B. Setting the TF
D. None of above
26. Upon the execution of FAR call instruction of 8086 the following will happen
A. SP is incremented by 2
B. SP is decremented by 2
C. SP is incremented by 4
D. SP is decremented by 4
Page 5 of 5
Name:……………. Group:……… Roll No………………
Note: Total questions are 15. All are compulsory. This quiz is of 5 marks.
2. ______&_______bits of 8051 PSW register are used for the selection of register banks.
4. In 8051, in the instruction ACALL the target address is limited to ___________Kbytes from
the present PC.
5. True or False. The target address of 8051 short jump is within -128 to +127 bytes of the
current PC. _________________
10. The status of carry flag is ___________(0/1) after the execution of following program.
CLR C
JNC OVER
CPL C
OVER:………
11. In port 3 of 8051, its ______&______pins are meant for RxD & TxD.
12. True or False. “Interrupt on start count” is the mode 0 of 8253. ______________
13. Mode________ of the Intel 8253 timer can generate a square wave?
Page 1 of 2
Name:……………. Group:……… Roll No………………
_____________________________________________________________________________________
Rough Work
Page 2 of 2
Name:……………. Group:……… Roll No………………
Note: Total questions are 10. All are compulsory. This quiz is of 5 marks.
1. What is the clock source for the timers in 8051? Tick mark the correct option
(a) some external crystal applied to the micro-controller for executing the timer
(d)through programming
2. What is the function of the TMOD register of 8051? Tick mark the correct option
(a) TMOD register is used to set various operation modes of timer/counter
(c) Is the destination or the final register where the result is obtained after the operation of the timer
3. True or false. D0 to D3 bits of TMOD register are assigned to program timer 1 of 8051.___________.
4. In mode 2 operation of 8051 timer, the counter rolls over when it goes from_______to________.
5. ___________bit of TMOD register when modified make each of the 8051 timers operate as counters.
6. Mode_______ of 8051 timer is used to set the baud rate in serial com port programming.
8. True or false. Upon reset, the external hardware interrupt of 8051 is low-level triggered.
10. True or False. Bit RI in SCON register of 8051 is raised when a received character is loaded into
SBUF register.
Page 1 of 2
Name:……………. Group:……… Roll No………………
_____________________________________________________________________________________
Rough Work
Page 2 of 2
Assignrment-1
Microprocessors and Microcontrollers (ECPC-252)
B.Tech CSE 4th Sem (Jan-June 2024)
Write and explain all the 8086 assembly language instructions in terms of:
1. Working operation
2. Addressing mode
3. Flags affected
4. No. of bytes
5. Examples
Make assignment on white colour A4 size paper with blue or black ink pen.
Write your name, roll number and group on the cover page of assignment. Also mention number
of pages used in the assignment.