SlideShare a Scribd company logo
1 of 1
Download to read offline
write an assemblyprogram that uses indirect addressing to switch the 1st and 2nd elements of the
dword array. Then switch the 3rd and 4th elements, and so on. Then output the final contents of
the array dwarraay. Use this template
INCLUDE Irvine32.inc
.data dwarray
dword 0,2,5,9,10,12
.code
main proc
all waitMsg
exit
mainENDP
END main
Solution
section .text global _start ;must be declared for linker (ld) _start: ;tells linker entry
point mov edx,len ;message length mov ecx,msg ;message to write mov ebx,1
;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call
kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel section
.data

More Related Content

More from arihantcomputersddn

The standard deviation of all possible values is called thea. stan.pdf
The standard deviation of all possible values is called thea. stan.pdfThe standard deviation of all possible values is called thea. stan.pdf
The standard deviation of all possible values is called thea. stan.pdfarihantcomputersddn
 
The difference between bipolar I disorder and bipolar II disorder is.pdf
The difference between bipolar I disorder and bipolar II disorder is.pdfThe difference between bipolar I disorder and bipolar II disorder is.pdf
The difference between bipolar I disorder and bipolar II disorder is.pdfarihantcomputersddn
 
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdfsolve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdfarihantcomputersddn
 
Question 6 A wastewater sample was collected after screening and grit.pdf
Question 6 A wastewater sample was collected after screening and grit.pdfQuestion 6 A wastewater sample was collected after screening and grit.pdf
Question 6 A wastewater sample was collected after screening and grit.pdfarihantcomputersddn
 
1. Cathy has just given birth to a little girl. When the nurse tried.pdf
1. Cathy has just given birth to a little girl. When the nurse tried.pdf1. Cathy has just given birth to a little girl. When the nurse tried.pdf
1. Cathy has just given birth to a little girl. When the nurse tried.pdfarihantcomputersddn
 
QUESTION 1-construction financeWhich one has not correctly describ.pdf
QUESTION 1-construction financeWhich one has not correctly describ.pdfQUESTION 1-construction financeWhich one has not correctly describ.pdf
QUESTION 1-construction financeWhich one has not correctly describ.pdfarihantcomputersddn
 
Problem #4 (20 points) a.A bus route having seven scheduled stops h.pdf
Problem #4 (20 points) a.A bus route having seven scheduled stops h.pdfProblem #4 (20 points) a.A bus route having seven scheduled stops h.pdf
Problem #4 (20 points) a.A bus route having seven scheduled stops h.pdfarihantcomputersddn
 
please read carefully before answering. Thank you. Choose at least.pdf
please read carefully before answering. Thank you. Choose at least.pdfplease read carefully before answering. Thank you. Choose at least.pdf
please read carefully before answering. Thank you. Choose at least.pdfarihantcomputersddn
 
As your reward for saving the Kingdom of Bigfunnia from the evil mon.pdf
As your reward for saving the Kingdom of Bigfunnia from the evil mon.pdfAs your reward for saving the Kingdom of Bigfunnia from the evil mon.pdf
As your reward for saving the Kingdom of Bigfunnia from the evil mon.pdfarihantcomputersddn
 
Name 3 openings that are transmitted through the levator ani musc.pdf
Name 3 openings that are transmitted through the levator ani musc.pdfName 3 openings that are transmitted through the levator ani musc.pdf
Name 3 openings that are transmitted through the levator ani musc.pdfarihantcomputersddn
 
Answer the following questions about molecule movement across a membr.pdf
Answer the following questions about molecule movement across a membr.pdfAnswer the following questions about molecule movement across a membr.pdf
Answer the following questions about molecule movement across a membr.pdfarihantcomputersddn
 
In how many ways, three indistinguishable Owls, one Parrot and one Sp.pdf
In how many ways, three indistinguishable Owls, one Parrot and one Sp.pdfIn how many ways, three indistinguishable Owls, one Parrot and one Sp.pdf
In how many ways, three indistinguishable Owls, one Parrot and one Sp.pdfarihantcomputersddn
 
In a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdf
In a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdfIn a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdf
In a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdfarihantcomputersddn
 
Hosts A through J have been connected to a switch for some time, wit.pdf
Hosts A through J have been connected to a switch for some time, wit.pdfHosts A through J have been connected to a switch for some time, wit.pdf
Hosts A through J have been connected to a switch for some time, wit.pdfarihantcomputersddn
 
I have code written for this problem but I am struggling finishing i.pdf
I have code written for this problem but I am struggling finishing i.pdfI have code written for this problem but I am struggling finishing i.pdf
I have code written for this problem but I am struggling finishing i.pdfarihantcomputersddn
 
Is VLIW archetecture suitable for desktop computers, or mobile devic.pdf
Is VLIW archetecture suitable for desktop computers, or mobile devic.pdfIs VLIW archetecture suitable for desktop computers, or mobile devic.pdf
Is VLIW archetecture suitable for desktop computers, or mobile devic.pdfarihantcomputersddn
 
A researcher is studying the determinants of state-financed welfare .pdf
A researcher is studying the determinants of state-financed welfare .pdfA researcher is studying the determinants of state-financed welfare .pdf
A researcher is studying the determinants of state-financed welfare .pdfarihantcomputersddn
 
Give two instances of the InsuranceCompany entity in the E-R model o.pdf
Give two instances of the InsuranceCompany entity in the E-R model o.pdfGive two instances of the InsuranceCompany entity in the E-R model o.pdf
Give two instances of the InsuranceCompany entity in the E-R model o.pdfarihantcomputersddn
 
How do government policies andor regulations factor into changes in.pdf
How do government policies andor regulations factor into changes in.pdfHow do government policies andor regulations factor into changes in.pdf
How do government policies andor regulations factor into changes in.pdfarihantcomputersddn
 
Discuss the motivations, means, and mentalities of companies that wi.pdf
Discuss the motivations, means, and mentalities of companies that wi.pdfDiscuss the motivations, means, and mentalities of companies that wi.pdf
Discuss the motivations, means, and mentalities of companies that wi.pdfarihantcomputersddn
 

More from arihantcomputersddn (20)

The standard deviation of all possible values is called thea. stan.pdf
The standard deviation of all possible values is called thea. stan.pdfThe standard deviation of all possible values is called thea. stan.pdf
The standard deviation of all possible values is called thea. stan.pdf
 
The difference between bipolar I disorder and bipolar II disorder is.pdf
The difference between bipolar I disorder and bipolar II disorder is.pdfThe difference between bipolar I disorder and bipolar II disorder is.pdf
The difference between bipolar I disorder and bipolar II disorder is.pdf
 
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdfsolve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
 
Question 6 A wastewater sample was collected after screening and grit.pdf
Question 6 A wastewater sample was collected after screening and grit.pdfQuestion 6 A wastewater sample was collected after screening and grit.pdf
Question 6 A wastewater sample was collected after screening and grit.pdf
 
1. Cathy has just given birth to a little girl. When the nurse tried.pdf
1. Cathy has just given birth to a little girl. When the nurse tried.pdf1. Cathy has just given birth to a little girl. When the nurse tried.pdf
1. Cathy has just given birth to a little girl. When the nurse tried.pdf
 
QUESTION 1-construction financeWhich one has not correctly describ.pdf
QUESTION 1-construction financeWhich one has not correctly describ.pdfQUESTION 1-construction financeWhich one has not correctly describ.pdf
QUESTION 1-construction financeWhich one has not correctly describ.pdf
 
Problem #4 (20 points) a.A bus route having seven scheduled stops h.pdf
Problem #4 (20 points) a.A bus route having seven scheduled stops h.pdfProblem #4 (20 points) a.A bus route having seven scheduled stops h.pdf
Problem #4 (20 points) a.A bus route having seven scheduled stops h.pdf
 
please read carefully before answering. Thank you. Choose at least.pdf
please read carefully before answering. Thank you. Choose at least.pdfplease read carefully before answering. Thank you. Choose at least.pdf
please read carefully before answering. Thank you. Choose at least.pdf
 
As your reward for saving the Kingdom of Bigfunnia from the evil mon.pdf
As your reward for saving the Kingdom of Bigfunnia from the evil mon.pdfAs your reward for saving the Kingdom of Bigfunnia from the evil mon.pdf
As your reward for saving the Kingdom of Bigfunnia from the evil mon.pdf
 
Name 3 openings that are transmitted through the levator ani musc.pdf
Name 3 openings that are transmitted through the levator ani musc.pdfName 3 openings that are transmitted through the levator ani musc.pdf
Name 3 openings that are transmitted through the levator ani musc.pdf
 
Answer the following questions about molecule movement across a membr.pdf
Answer the following questions about molecule movement across a membr.pdfAnswer the following questions about molecule movement across a membr.pdf
Answer the following questions about molecule movement across a membr.pdf
 
In how many ways, three indistinguishable Owls, one Parrot and one Sp.pdf
In how many ways, three indistinguishable Owls, one Parrot and one Sp.pdfIn how many ways, three indistinguishable Owls, one Parrot and one Sp.pdf
In how many ways, three indistinguishable Owls, one Parrot and one Sp.pdf
 
In a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdf
In a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdfIn a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdf
In a certain year, 86 of all Caucasians in the U.S., 76 of all Afr.pdf
 
Hosts A through J have been connected to a switch for some time, wit.pdf
Hosts A through J have been connected to a switch for some time, wit.pdfHosts A through J have been connected to a switch for some time, wit.pdf
Hosts A through J have been connected to a switch for some time, wit.pdf
 
I have code written for this problem but I am struggling finishing i.pdf
I have code written for this problem but I am struggling finishing i.pdfI have code written for this problem but I am struggling finishing i.pdf
I have code written for this problem but I am struggling finishing i.pdf
 
Is VLIW archetecture suitable for desktop computers, or mobile devic.pdf
Is VLIW archetecture suitable for desktop computers, or mobile devic.pdfIs VLIW archetecture suitable for desktop computers, or mobile devic.pdf
Is VLIW archetecture suitable for desktop computers, or mobile devic.pdf
 
A researcher is studying the determinants of state-financed welfare .pdf
A researcher is studying the determinants of state-financed welfare .pdfA researcher is studying the determinants of state-financed welfare .pdf
A researcher is studying the determinants of state-financed welfare .pdf
 
Give two instances of the InsuranceCompany entity in the E-R model o.pdf
Give two instances of the InsuranceCompany entity in the E-R model o.pdfGive two instances of the InsuranceCompany entity in the E-R model o.pdf
Give two instances of the InsuranceCompany entity in the E-R model o.pdf
 
How do government policies andor regulations factor into changes in.pdf
How do government policies andor regulations factor into changes in.pdfHow do government policies andor regulations factor into changes in.pdf
How do government policies andor regulations factor into changes in.pdf
 
Discuss the motivations, means, and mentalities of companies that wi.pdf
Discuss the motivations, means, and mentalities of companies that wi.pdfDiscuss the motivations, means, and mentalities of companies that wi.pdf
Discuss the motivations, means, and mentalities of companies that wi.pdf
 

Recently uploaded

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 17Celine George
 
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
 
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...EduSkills OECD
 
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
 
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 HinduismDabee Kamal
 
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
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
ĐỀ 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
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
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
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
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.pptxCeline George
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
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
 

Recently uploaded (20)

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
 
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
 
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...
 
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
 
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
 
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"
 
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...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
ĐỀ 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
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
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Ư...
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
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
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
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"
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
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
 

write an assemblyprogram that uses indirect addressing to switch the.pdf

  • 1. write an assemblyprogram that uses indirect addressing to switch the 1st and 2nd elements of the dword array. Then switch the 3rd and 4th elements, and so on. Then output the final contents of the array dwarraay. Use this template INCLUDE Irvine32.inc .data dwarray dword 0,2,5,9,10,12 .code main proc all waitMsg exit mainENDP END main Solution section .text global _start ;must be declared for linker (ld) _start: ;tells linker entry point mov edx,len ;message length mov ecx,msg ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel section .data