SlideShare a Scribd company logo
1 of 1
Download to read offline
Assembly Language:
Reverse an array.
Use a loop with indirect or indexed addressing to reverse the elements of an integer array in
place. Do not copy the elements to any other array. Do not use stack operations. Use the
SIZEOF, TYPE, LENGTHOF operators.
Fibonacci Numbers.
Write a code that fills the array of 15 elements with consecutive Fibonacci numbers: Fib(1) =
Fib(2) = 1; Fib (n) = Fib(n-1) + Fib(n-2) for each N > 2.
corrent code:
Solution
data barray BYTE 6 DUP (?) dwarray DWORD 3 DUP (?) TOTAL_LENGTH = $-barray
bdmessage BYTE "Today as stored in a double word", 0dh, 0ah, 0 dwmessage BYTE 0dh,
0ah, "Seeing bytes in a single word", 0dh, 0ah, 0 lengthmessage BYTE 0dh, 0ah, "total bytes
used: ", 0 finalmessage BYTE 0dh, 0ah, "Press any key to continue ...", 0 .code main PROC
CALL Crlf MOV edx, OFFSET bdmessage CALL WriteString MOV eax, DWORD
PTR [barray + 2] CALL WriteDec MOV edx, OFFSET dwmessage CALL WriteString
MOVZX eax, WORD PTR [dwarray + 6] CALL WriteDec MOV edx, OFFSET
lengthmessage CALL WriteString MOV eax, TOTAL_LENGTH CALL WriteDec
MOV edx, OFFSET finalmessage CALL WriteString CALL ReadChar INVOKE
ExitProcess, 0 main ENDP END main

More Related Content

Similar to Assembly LanguageReverse an array.Use a loop with indirect or i.pdf

Write ASSEMBLY code to implement the following Initialize PORTB for.docx
 Write ASSEMBLY code to implement the following  Initialize PORTB for.docx Write ASSEMBLY code to implement the following  Initialize PORTB for.docx
Write ASSEMBLY code to implement the following Initialize PORTB for.docxajoy21
 
GSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.comGSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.comkopiko85
 
Lecture 2 coal sping12
Lecture 2 coal sping12Lecture 2 coal sping12
Lecture 2 coal sping12Rabia Khalid
 
Chapter 2 Part2 A
Chapter 2 Part2 AChapter 2 Part2 A
Chapter 2 Part2 Aececourse
 
Use the following data definitions until notified otherwise Byte1 BYTE ...
Use the following data definitions until notified otherwise  Byte1    BYTE   ...Use the following data definitions until notified otherwise  Byte1    BYTE   ...
Use the following data definitions until notified otherwise Byte1 BYTE ...hwbloom138
 
CLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriyaCLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriyaVijiPriya Jeyamani
 
GSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.comGSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.comjonhson129
 
GSP 215 Enhance teaching/tutorialrank.com
 GSP 215 Enhance teaching/tutorialrank.com GSP 215 Enhance teaching/tutorialrank.com
GSP 215 Enhance teaching/tutorialrank.comjonhson300
 
Gsp 215 Effective Communication / snaptutorial.com
Gsp 215  Effective Communication / snaptutorial.comGsp 215  Effective Communication / snaptutorial.com
Gsp 215 Effective Communication / snaptutorial.comHarrisGeorg21
 
String_manipulations.pdf
String_manipulations.pdfString_manipulations.pdf
String_manipulations.pdfAnonymous611358
 
C:\Fakepath\Chapter 2 Part2 B
C:\Fakepath\Chapter 2 Part2 BC:\Fakepath\Chapter 2 Part2 B
C:\Fakepath\Chapter 2 Part2 Bececourse
 
I need help getting my code to work (code is at the bottom)1.3.pdf
I need help getting my code to work (code is at the bottom)1.3.pdfI need help getting my code to work (code is at the bottom)1.3.pdf
I need help getting my code to work (code is at the bottom)1.3.pdfpratyushraj61
 
Debugging Python with Pdb!
Debugging Python with Pdb!Debugging Python with Pdb!
Debugging Python with Pdb!Noelle Daley
 
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)Igalia
 

Similar to Assembly LanguageReverse an array.Use a loop with indirect or i.pdf (20)

Write ASSEMBLY code to implement the following Initialize PORTB for.docx
 Write ASSEMBLY code to implement the following  Initialize PORTB for.docx Write ASSEMBLY code to implement the following  Initialize PORTB for.docx
Write ASSEMBLY code to implement the following Initialize PORTB for.docx
 
GSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.comGSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.com
 
Lecture 2 coal sping12
Lecture 2 coal sping12Lecture 2 coal sping12
Lecture 2 coal sping12
 
Chapter 2 Part2 A
Chapter 2 Part2 AChapter 2 Part2 A
Chapter 2 Part2 A
 
Use the following data definitions until notified otherwise Byte1 BYTE ...
Use the following data definitions until notified otherwise  Byte1    BYTE   ...Use the following data definitions until notified otherwise  Byte1    BYTE   ...
Use the following data definitions until notified otherwise Byte1 BYTE ...
 
Mips
MipsMips
Mips
 
CLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriyaCLISP Lab Manual - Dr.J.VijiPriya
CLISP Lab Manual - Dr.J.VijiPriya
 
GSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.comGSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.com
 
GSP 215 Enhance teaching/tutorialrank.com
 GSP 215 Enhance teaching/tutorialrank.com GSP 215 Enhance teaching/tutorialrank.com
GSP 215 Enhance teaching/tutorialrank.com
 
Gsp 215 Effective Communication / snaptutorial.com
Gsp 215  Effective Communication / snaptutorial.comGsp 215  Effective Communication / snaptutorial.com
Gsp 215 Effective Communication / snaptutorial.com
 
String_manipulations.pdf
String_manipulations.pdfString_manipulations.pdf
String_manipulations.pdf
 
algorithm
algorithmalgorithm
algorithm
 
Lab manual mp
Lab manual mpLab manual mp
Lab manual mp
 
Intro to assembly language
Intro to assembly languageIntro to assembly language
Intro to assembly language
 
Chapt 06
Chapt 06Chapt 06
Chapt 06
 
Chapt 06
Chapt 06Chapt 06
Chapt 06
 
C:\Fakepath\Chapter 2 Part2 B
C:\Fakepath\Chapter 2 Part2 BC:\Fakepath\Chapter 2 Part2 B
C:\Fakepath\Chapter 2 Part2 B
 
I need help getting my code to work (code is at the bottom)1.3.pdf
I need help getting my code to work (code is at the bottom)1.3.pdfI need help getting my code to work (code is at the bottom)1.3.pdf
I need help getting my code to work (code is at the bottom)1.3.pdf
 
Debugging Python with Pdb!
Debugging Python with Pdb!Debugging Python with Pdb!
Debugging Python with Pdb!
 
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
 

More from kesav24

If 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdf
If 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdfIf 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdf
If 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdfkesav24
 
In the equation below f is a frequency, and L is a length. What are .pdf
In the equation below f is a frequency, and L is a length. What are .pdfIn the equation below f is a frequency, and L is a length. What are .pdf
In the equation below f is a frequency, and L is a length. What are .pdfkesav24
 
how are the axial and appendicular skeletons attachedSolutionA.pdf
how are the axial and appendicular skeletons attachedSolutionA.pdfhow are the axial and appendicular skeletons attachedSolutionA.pdf
how are the axial and appendicular skeletons attachedSolutionA.pdfkesav24
 
How many base pairs of DNA represent the haploid human genome How m.pdf
How many base pairs of DNA represent the haploid human genome How m.pdfHow many base pairs of DNA represent the haploid human genome How m.pdf
How many base pairs of DNA represent the haploid human genome How m.pdfkesav24
 
From a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdf
From a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdfFrom a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdf
From a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdfkesav24
 
Find and classify all singularities of the gamma and riemann zeta fu.pdf
Find and classify all singularities of the gamma and riemann zeta fu.pdfFind and classify all singularities of the gamma and riemann zeta fu.pdf
Find and classify all singularities of the gamma and riemann zeta fu.pdfkesav24
 
Discuss the two group classifications that exist in Windows Server 2.pdf
Discuss the two group classifications that exist in Windows Server 2.pdfDiscuss the two group classifications that exist in Windows Server 2.pdf
Discuss the two group classifications that exist in Windows Server 2.pdfkesav24
 
Describe the differences between allelic heterogeneity and locus het.pdf
Describe the differences between allelic heterogeneity and locus het.pdfDescribe the differences between allelic heterogeneity and locus het.pdf
Describe the differences between allelic heterogeneity and locus het.pdfkesav24
 
Decision Tree Table for choosing present and future value equations. .pdf
Decision Tree Table for choosing present and future value equations. .pdfDecision Tree Table for choosing present and future value equations. .pdf
Decision Tree Table for choosing present and future value equations. .pdfkesav24
 
Consider this experiment I have 20-sided die where each face has a .pdf
Consider this experiment I have 20-sided die where each face has a .pdfConsider this experiment I have 20-sided die where each face has a .pdf
Consider this experiment I have 20-sided die where each face has a .pdfkesav24
 
congenital malformations. why do you think they occurSolution.pdf
congenital malformations. why do you think they occurSolution.pdfcongenital malformations. why do you think they occurSolution.pdf
congenital malformations. why do you think they occurSolution.pdfkesav24
 
Considering the cultures used to inoculate each medium in this labora.pdf
Considering the cultures used to inoculate each medium in this labora.pdfConsidering the cultures used to inoculate each medium in this labora.pdf
Considering the cultures used to inoculate each medium in this labora.pdfkesav24
 
Are the transfermations linear Are they an isomorphism WhySol.pdf
Are the transfermations linear Are they an isomorphism WhySol.pdfAre the transfermations linear Are they an isomorphism WhySol.pdf
Are the transfermations linear Are they an isomorphism WhySol.pdfkesav24
 
bessavillabessavillabessavillabessavillaSoluti.pdf
bessavillabessavillabessavillabessavillaSoluti.pdfbessavillabessavillabessavillabessavillaSoluti.pdf
bessavillabessavillabessavillabessavillaSoluti.pdfkesav24
 
ciny Univer Laboratory es and crossing over assortment of independent.pdf
ciny Univer Laboratory es and crossing over assortment of independent.pdfciny Univer Laboratory es and crossing over assortment of independent.pdf
ciny Univer Laboratory es and crossing over assortment of independent.pdfkesav24
 
A population of rabbits quadruples every 2 years. If the initial num.pdf
A population of rabbits quadruples every 2 years. If the initial num.pdfA population of rabbits quadruples every 2 years. If the initial num.pdf
A population of rabbits quadruples every 2 years. If the initial num.pdfkesav24
 
7. describe and correct the error. Describe and correct the error. .pdf
7. describe and correct the error. Describe and correct the error.  .pdf7. describe and correct the error. Describe and correct the error.  .pdf
7. describe and correct the error. Describe and correct the error. .pdfkesav24
 
3. Where would you expect to find fenestrated capillaries (More tha.pdf
3. Where would you expect to find fenestrated capillaries (More tha.pdf3. Where would you expect to find fenestrated capillaries (More tha.pdf
3. Where would you expect to find fenestrated capillaries (More tha.pdfkesav24
 
wo alternative investment proposals are under consideration for a va.pdf
wo alternative investment proposals are under consideration for a va.pdfwo alternative investment proposals are under consideration for a va.pdf
wo alternative investment proposals are under consideration for a va.pdfkesav24
 
You are searching for new species that are highly tolerant to acidic.pdf
You are searching for new species that are highly tolerant to acidic.pdfYou are searching for new species that are highly tolerant to acidic.pdf
You are searching for new species that are highly tolerant to acidic.pdfkesav24
 

More from kesav24 (20)

If 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdf
If 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdfIf 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdf
If 0.150 mL of 10^-7.5 dilution yielded an average of 256 coloniesp.pdf
 
In the equation below f is a frequency, and L is a length. What are .pdf
In the equation below f is a frequency, and L is a length. What are .pdfIn the equation below f is a frequency, and L is a length. What are .pdf
In the equation below f is a frequency, and L is a length. What are .pdf
 
how are the axial and appendicular skeletons attachedSolutionA.pdf
how are the axial and appendicular skeletons attachedSolutionA.pdfhow are the axial and appendicular skeletons attachedSolutionA.pdf
how are the axial and appendicular skeletons attachedSolutionA.pdf
 
How many base pairs of DNA represent the haploid human genome How m.pdf
How many base pairs of DNA represent the haploid human genome How m.pdfHow many base pairs of DNA represent the haploid human genome How m.pdf
How many base pairs of DNA represent the haploid human genome How m.pdf
 
From a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdf
From a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdfFrom a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdf
From a group of cards that has 13 hearts, 6 spades, 2 diamonds and 4.pdf
 
Find and classify all singularities of the gamma and riemann zeta fu.pdf
Find and classify all singularities of the gamma and riemann zeta fu.pdfFind and classify all singularities of the gamma and riemann zeta fu.pdf
Find and classify all singularities of the gamma and riemann zeta fu.pdf
 
Discuss the two group classifications that exist in Windows Server 2.pdf
Discuss the two group classifications that exist in Windows Server 2.pdfDiscuss the two group classifications that exist in Windows Server 2.pdf
Discuss the two group classifications that exist in Windows Server 2.pdf
 
Describe the differences between allelic heterogeneity and locus het.pdf
Describe the differences between allelic heterogeneity and locus het.pdfDescribe the differences between allelic heterogeneity and locus het.pdf
Describe the differences between allelic heterogeneity and locus het.pdf
 
Decision Tree Table for choosing present and future value equations. .pdf
Decision Tree Table for choosing present and future value equations. .pdfDecision Tree Table for choosing present and future value equations. .pdf
Decision Tree Table for choosing present and future value equations. .pdf
 
Consider this experiment I have 20-sided die where each face has a .pdf
Consider this experiment I have 20-sided die where each face has a .pdfConsider this experiment I have 20-sided die where each face has a .pdf
Consider this experiment I have 20-sided die where each face has a .pdf
 
congenital malformations. why do you think they occurSolution.pdf
congenital malformations. why do you think they occurSolution.pdfcongenital malformations. why do you think they occurSolution.pdf
congenital malformations. why do you think they occurSolution.pdf
 
Considering the cultures used to inoculate each medium in this labora.pdf
Considering the cultures used to inoculate each medium in this labora.pdfConsidering the cultures used to inoculate each medium in this labora.pdf
Considering the cultures used to inoculate each medium in this labora.pdf
 
Are the transfermations linear Are they an isomorphism WhySol.pdf
Are the transfermations linear Are they an isomorphism WhySol.pdfAre the transfermations linear Are they an isomorphism WhySol.pdf
Are the transfermations linear Are they an isomorphism WhySol.pdf
 
bessavillabessavillabessavillabessavillaSoluti.pdf
bessavillabessavillabessavillabessavillaSoluti.pdfbessavillabessavillabessavillabessavillaSoluti.pdf
bessavillabessavillabessavillabessavillaSoluti.pdf
 
ciny Univer Laboratory es and crossing over assortment of independent.pdf
ciny Univer Laboratory es and crossing over assortment of independent.pdfciny Univer Laboratory es and crossing over assortment of independent.pdf
ciny Univer Laboratory es and crossing over assortment of independent.pdf
 
A population of rabbits quadruples every 2 years. If the initial num.pdf
A population of rabbits quadruples every 2 years. If the initial num.pdfA population of rabbits quadruples every 2 years. If the initial num.pdf
A population of rabbits quadruples every 2 years. If the initial num.pdf
 
7. describe and correct the error. Describe and correct the error. .pdf
7. describe and correct the error. Describe and correct the error.  .pdf7. describe and correct the error. Describe and correct the error.  .pdf
7. describe and correct the error. Describe and correct the error. .pdf
 
3. Where would you expect to find fenestrated capillaries (More tha.pdf
3. Where would you expect to find fenestrated capillaries (More tha.pdf3. Where would you expect to find fenestrated capillaries (More tha.pdf
3. Where would you expect to find fenestrated capillaries (More tha.pdf
 
wo alternative investment proposals are under consideration for a va.pdf
wo alternative investment proposals are under consideration for a va.pdfwo alternative investment proposals are under consideration for a va.pdf
wo alternative investment proposals are under consideration for a va.pdf
 
You are searching for new species that are highly tolerant to acidic.pdf
You are searching for new species that are highly tolerant to acidic.pdfYou are searching for new species that are highly tolerant to acidic.pdf
You are searching for new species that are highly tolerant to acidic.pdf
 

Recently uploaded

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 RoomSean M. Fox
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
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àrdiaEADTU
 
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...Nguyen Thanh Tu Collection
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
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 RajagopalEADTU
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
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 strategiesAmanpreetKaur157993
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 

Recently uploaded (20)

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
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
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
 
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...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
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
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
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
 
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"
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 

Assembly LanguageReverse an array.Use a loop with indirect or i.pdf

  • 1. Assembly Language: Reverse an array. Use a loop with indirect or indexed addressing to reverse the elements of an integer array in place. Do not copy the elements to any other array. Do not use stack operations. Use the SIZEOF, TYPE, LENGTHOF operators. Fibonacci Numbers. Write a code that fills the array of 15 elements with consecutive Fibonacci numbers: Fib(1) = Fib(2) = 1; Fib (n) = Fib(n-1) + Fib(n-2) for each N > 2. corrent code: Solution data barray BYTE 6 DUP (?) dwarray DWORD 3 DUP (?) TOTAL_LENGTH = $-barray bdmessage BYTE "Today as stored in a double word", 0dh, 0ah, 0 dwmessage BYTE 0dh, 0ah, "Seeing bytes in a single word", 0dh, 0ah, 0 lengthmessage BYTE 0dh, 0ah, "total bytes used: ", 0 finalmessage BYTE 0dh, 0ah, "Press any key to continue ...", 0 .code main PROC CALL Crlf MOV edx, OFFSET bdmessage CALL WriteString MOV eax, DWORD PTR [barray + 2] CALL WriteDec MOV edx, OFFSET dwmessage CALL WriteString MOVZX eax, WORD PTR [dwarray + 6] CALL WriteDec MOV edx, OFFSET lengthmessage CALL WriteString MOV eax, TOTAL_LENGTH CALL WriteDec MOV edx, OFFSET finalmessage CALL WriteString CALL ReadChar INVOKE ExitProcess, 0 main ENDP END main