SlideShare a Scribd company logo
1 of 9
A batsman scores 4, 2, 1, 6, 4, 0 in an over. Write an assembly language program in 8086 to find the total score
by the batsman in that over. Also identify the addressing mode for the instructions you are using in your
program.
A bi-cycle travels with a speed of 12 km/hr for 4 hours (without stoppage). Exercise Booth’s Algorithm steps to find
total distance travelled. What are the content of registers ‘A’, ‘M’, and ‘Q’ when ‘n’ reaches values of 1?
Consider the following C code
int a ; int b = 10 ; int c = 3;
for (a = 0 ; a < 10 ; a++)
{
If (a < 5) {
b = a * c;
}
Else {
c = a / 2;
}
}
Develop the equivalent assembly language program for the given C code.
Find the number of occurrences of positive numbers, negative numbers and zeros in a given set of 10 data
array stored in a block of memory locations whose offset address starts from 4000H:2000H. Store the counts in
memory locations whose offset address is 4000H:2100H, 4000H:2101H and 4000H:2002H.
. Depict your understanding of division process in digital computers by performing -9/5.
Two integers, A and B are subtracted by 8086 execution unit ALU of 8086 processor as A-B. Identify the
status of the 8086 flag register if A>B, A=B, and A<B. Assume, suitable values of A and B to demonstrate
the detailed process.
What will be the content of AL and BL registers after execution of the following
set of instructions?
MOV AL, 22H
MOV BL, 11H
XOR AL, BL
SHR BL, 1
After the execution of the following code identify the status of
flag registers.
MOV AX, 1234 H
MOV BX, 4321 H
XCHG AX, BX
CMP BX, AX
. Identify the addressing modes used in the following
instructions:
MOV AL, AH
MOV BH, [0101H];
MOV CX, [DI]
MOV DX, [BX] [SI]
MOV DX, 111H [BX]
Realize the following numbers in IEEE 754 Floating point
representation:
-47.7799278 x 2^-8
+86.95375 x 2^4
Also, convert the following IEEE 754 Floating point number into
decimal number format
1 10010011 11100100100010100110101

More Related Content

Similar to Model Q.pptx

Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
Ashim Saha
 

Similar to Model Q.pptx (20)

Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Ecet 330 final exam new 2016
Ecet 330 final exam new 2016
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :P
 
microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2microp-8085 74 instructions for mct-A :P-2
microp-8085 74 instructions for mct-A :P-2
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 
Alp 05
Alp 05Alp 05
Alp 05
 
Advanced micro -processor
Advanced micro -processorAdvanced micro -processor
Advanced micro -processor
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086
 
Microprocessor Architecture.pptx
Microprocessor Architecture.pptxMicroprocessor Architecture.pptx
Microprocessor Architecture.pptx
 
8086 Register organization and Architecture details
8086 Register organization and Architecture details8086 Register organization and Architecture details
8086 Register organization and Architecture details
 
Question Bank microcontroller 8051
Question Bank microcontroller 8051Question Bank microcontroller 8051
Question Bank microcontroller 8051
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
Gsp 215 Future Our Mission/newtonhelp.com
Gsp 215 Future Our Mission/newtonhelp.comGsp 215 Future Our Mission/newtonhelp.com
Gsp 215 Future Our Mission/newtonhelp.com
 
GSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.comGSP 215 Doing by learn/newtonhelp.com
GSP 215 Doing by learn/newtonhelp.com
 
GSP 215 Become Exceptional/newtonhelp.com
GSP 215 Become Exceptional/newtonhelp.comGSP 215 Become Exceptional/newtonhelp.com
GSP 215 Become Exceptional/newtonhelp.com
 

Recently uploaded

Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 

Model Q.pptx

  • 1. A batsman scores 4, 2, 1, 6, 4, 0 in an over. Write an assembly language program in 8086 to find the total score by the batsman in that over. Also identify the addressing mode for the instructions you are using in your program.
  • 2. A bi-cycle travels with a speed of 12 km/hr for 4 hours (without stoppage). Exercise Booth’s Algorithm steps to find total distance travelled. What are the content of registers ‘A’, ‘M’, and ‘Q’ when ‘n’ reaches values of 1?
  • 3. Consider the following C code int a ; int b = 10 ; int c = 3; for (a = 0 ; a < 10 ; a++) { If (a < 5) { b = a * c; } Else { c = a / 2; } } Develop the equivalent assembly language program for the given C code.
  • 4. Find the number of occurrences of positive numbers, negative numbers and zeros in a given set of 10 data array stored in a block of memory locations whose offset address starts from 4000H:2000H. Store the counts in memory locations whose offset address is 4000H:2100H, 4000H:2101H and 4000H:2002H.
  • 5. . Depict your understanding of division process in digital computers by performing -9/5. Two integers, A and B are subtracted by 8086 execution unit ALU of 8086 processor as A-B. Identify the status of the 8086 flag register if A>B, A=B, and A<B. Assume, suitable values of A and B to demonstrate the detailed process.
  • 6. What will be the content of AL and BL registers after execution of the following set of instructions? MOV AL, 22H MOV BL, 11H XOR AL, BL SHR BL, 1
  • 7. After the execution of the following code identify the status of flag registers. MOV AX, 1234 H MOV BX, 4321 H XCHG AX, BX CMP BX, AX
  • 8. . Identify the addressing modes used in the following instructions: MOV AL, AH MOV BH, [0101H]; MOV CX, [DI] MOV DX, [BX] [SI] MOV DX, 111H [BX]
  • 9. Realize the following numbers in IEEE 754 Floating point representation: -47.7799278 x 2^-8 +86.95375 x 2^4 Also, convert the following IEEE 754 Floating point number into decimal number format 1 10010011 11100100100010100110101