SlideShare a Scribd company logo
Some architectures support the ‘memory indirect’ addressing mode. Below is an example. In this
case, the register R3 contains a pointer to a pointer. Two memory accesses are required to load
the data. ADD R1, @(R3) The MIPS CPU doesn’t support this addressing mode. Write a MIPS
code that’s equivalent to the instruction above. The pointer-to-pointer is in register $t3. The other
data is in register $t1.
Solution
LW &t2,o(&t1) ; t2=*t1;
LW &t3,o($t2) ; t3=**t1;
ADD $t3,$t4

More Related Content

More from fashionscollect

Central banks in advanced economies have gradually moved away from m.pdf
Central banks in advanced economies have gradually moved away from m.pdfCentral banks in advanced economies have gradually moved away from m.pdf
Central banks in advanced economies have gradually moved away from m.pdf
fashionscollect
 
Cell division in the apical meristems Cell division in the apical me.pdf
Cell division in the apical meristems  Cell division in the apical me.pdfCell division in the apical meristems  Cell division in the apical me.pdf
Cell division in the apical meristems Cell division in the apical me.pdf
fashionscollect
 
Asteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdf
Asteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdfAsteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdf
Asteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdf
fashionscollect
 
Biochemistry-Explain the differences in the ease of lateral movem.pdf
Biochemistry-Explain the differences in the ease of lateral movem.pdfBiochemistry-Explain the differences in the ease of lateral movem.pdf
Biochemistry-Explain the differences in the ease of lateral movem.pdf
fashionscollect
 
4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf
4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf
4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf
fashionscollect
 
With regard to the SDLC and the Systems Engineering processThe SD.pdf
With regard to the SDLC and the Systems Engineering processThe SD.pdfWith regard to the SDLC and the Systems Engineering processThe SD.pdf
With regard to the SDLC and the Systems Engineering processThe SD.pdf
fashionscollect
 
What is the conjugate acid of each of the following Brønsted–Lowry b.pdf
What is the conjugate acid of each of the following Brønsted–Lowry b.pdfWhat is the conjugate acid of each of the following Brønsted–Lowry b.pdf
What is the conjugate acid of each of the following Brønsted–Lowry b.pdf
fashionscollect
 
What is the importance of phosphoryl-transfer potential and what fac.pdf
What is the importance of phosphoryl-transfer potential and what fac.pdfWhat is the importance of phosphoryl-transfer potential and what fac.pdf
What is the importance of phosphoryl-transfer potential and what fac.pdf
fashionscollect
 
What is emphysema What effect does emphysema have on breathing Wha.pdf
What is emphysema What effect does emphysema have on breathing Wha.pdfWhat is emphysema What effect does emphysema have on breathing Wha.pdf
What is emphysema What effect does emphysema have on breathing Wha.pdf
fashionscollect
 
What are cyclinsand How do cyclins oscillateSolutionCyclines.pdf
What are cyclinsand How do cyclins oscillateSolutionCyclines.pdfWhat are cyclinsand How do cyclins oscillateSolutionCyclines.pdf
What are cyclinsand How do cyclins oscillateSolutionCyclines.pdf
fashionscollect
 
Weaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdf
Weaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdfWeaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdf
Weaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdf
fashionscollect
 
13. The auditors report on Other Financial Information (OFI) accomp.pdf
13. The auditors report on Other Financial Information (OFI) accomp.pdf13. The auditors report on Other Financial Information (OFI) accomp.pdf
13. The auditors report on Other Financial Information (OFI) accomp.pdf
fashionscollect
 
tructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdf
tructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdftructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdf
tructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdf
fashionscollect
 
Transportation is a pervasive and very important pa.pdf
Transportation is a pervasive and very important pa.pdfTransportation is a pervasive and very important pa.pdf
Transportation is a pervasive and very important pa.pdf
fashionscollect
 
This is Java, What I am creating is a multi lab pacman type game.T.pdf
This is Java, What I am creating is a multi lab pacman type game.T.pdfThis is Java, What I am creating is a multi lab pacman type game.T.pdf
This is Java, What I am creating is a multi lab pacman type game.T.pdf
fashionscollect
 
The European Union has faced a number of challenges in recent years,.pdf
The European Union has faced a number of challenges in recent years,.pdfThe European Union has faced a number of challenges in recent years,.pdf
The European Union has faced a number of challenges in recent years,.pdf
fashionscollect
 
THE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdf
THE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdfTHE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdf
THE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdf
fashionscollect
 
TCO F You work for a freshman congressman who is trying to learn th.pdf
TCO F You work for a freshman congressman who is trying to learn th.pdfTCO F You work for a freshman congressman who is trying to learn th.pdf
TCO F You work for a freshman congressman who is trying to learn th.pdf
fashionscollect
 
16). What is plasmolysis What would happen if you placed Elodea in .pdf
16). What is plasmolysis What would happen if you placed Elodea in .pdf16). What is plasmolysis What would happen if you placed Elodea in .pdf
16). What is plasmolysis What would happen if you placed Elodea in .pdf
fashionscollect
 
Suppose n people are seated at random in a row of n seats. How many o.pdf
Suppose n people are seated at random in a row of n seats. How many o.pdfSuppose n people are seated at random in a row of n seats. How many o.pdf
Suppose n people are seated at random in a row of n seats. How many o.pdf
fashionscollect
 

More from fashionscollect (20)

Central banks in advanced economies have gradually moved away from m.pdf
Central banks in advanced economies have gradually moved away from m.pdfCentral banks in advanced economies have gradually moved away from m.pdf
Central banks in advanced economies have gradually moved away from m.pdf
 
Cell division in the apical meristems Cell division in the apical me.pdf
Cell division in the apical meristems  Cell division in the apical me.pdfCell division in the apical meristems  Cell division in the apical me.pdf
Cell division in the apical meristems Cell division in the apical me.pdf
 
Asteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdf
Asteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdfAsteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdf
Asteroids X, Y, and Z have equal mass of 4.0 kg each, They orbit aro.pdf
 
Biochemistry-Explain the differences in the ease of lateral movem.pdf
Biochemistry-Explain the differences in the ease of lateral movem.pdfBiochemistry-Explain the differences in the ease of lateral movem.pdf
Biochemistry-Explain the differences in the ease of lateral movem.pdf
 
4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf
4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf
4. Ammonia and calcium chlorate react to yield nitrogen gas, water, a.pdf
 
With regard to the SDLC and the Systems Engineering processThe SD.pdf
With regard to the SDLC and the Systems Engineering processThe SD.pdfWith regard to the SDLC and the Systems Engineering processThe SD.pdf
With regard to the SDLC and the Systems Engineering processThe SD.pdf
 
What is the conjugate acid of each of the following Brønsted–Lowry b.pdf
What is the conjugate acid of each of the following Brønsted–Lowry b.pdfWhat is the conjugate acid of each of the following Brønsted–Lowry b.pdf
What is the conjugate acid of each of the following Brønsted–Lowry b.pdf
 
What is the importance of phosphoryl-transfer potential and what fac.pdf
What is the importance of phosphoryl-transfer potential and what fac.pdfWhat is the importance of phosphoryl-transfer potential and what fac.pdf
What is the importance of phosphoryl-transfer potential and what fac.pdf
 
What is emphysema What effect does emphysema have on breathing Wha.pdf
What is emphysema What effect does emphysema have on breathing Wha.pdfWhat is emphysema What effect does emphysema have on breathing Wha.pdf
What is emphysema What effect does emphysema have on breathing Wha.pdf
 
What are cyclinsand How do cyclins oscillateSolutionCyclines.pdf
What are cyclinsand How do cyclins oscillateSolutionCyclines.pdfWhat are cyclinsand How do cyclins oscillateSolutionCyclines.pdf
What are cyclinsand How do cyclins oscillateSolutionCyclines.pdf
 
Weaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdf
Weaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdfWeaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdf
Weaver Company Comparative Balance Sheet December 31, 2015 and 2014 2.pdf
 
13. The auditors report on Other Financial Information (OFI) accomp.pdf
13. The auditors report on Other Financial Information (OFI) accomp.pdf13. The auditors report on Other Financial Information (OFI) accomp.pdf
13. The auditors report on Other Financial Information (OFI) accomp.pdf
 
tructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdf
tructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdftructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdf
tructure.comcourses2251 ents Ch 4 Hwk due June 12th wk due June 12t.pdf
 
Transportation is a pervasive and very important pa.pdf
Transportation is a pervasive and very important pa.pdfTransportation is a pervasive and very important pa.pdf
Transportation is a pervasive and very important pa.pdf
 
This is Java, What I am creating is a multi lab pacman type game.T.pdf
This is Java, What I am creating is a multi lab pacman type game.T.pdfThis is Java, What I am creating is a multi lab pacman type game.T.pdf
This is Java, What I am creating is a multi lab pacman type game.T.pdf
 
The European Union has faced a number of challenges in recent years,.pdf
The European Union has faced a number of challenges in recent years,.pdfThe European Union has faced a number of challenges in recent years,.pdf
The European Union has faced a number of challenges in recent years,.pdf
 
THE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdf
THE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdfTHE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdf
THE CIPUTRA GROUP SHAPING THE CITY IN ASIA “If you have the will, a.pdf
 
TCO F You work for a freshman congressman who is trying to learn th.pdf
TCO F You work for a freshman congressman who is trying to learn th.pdfTCO F You work for a freshman congressman who is trying to learn th.pdf
TCO F You work for a freshman congressman who is trying to learn th.pdf
 
16). What is plasmolysis What would happen if you placed Elodea in .pdf
16). What is plasmolysis What would happen if you placed Elodea in .pdf16). What is plasmolysis What would happen if you placed Elodea in .pdf
16). What is plasmolysis What would happen if you placed Elodea in .pdf
 
Suppose n people are seated at random in a row of n seats. How many o.pdf
Suppose n people are seated at random in a row of n seats. How many o.pdfSuppose n people are seated at random in a row of n seats. How many o.pdf
Suppose n people are seated at random in a row of n seats. How many o.pdf
 

Recently uploaded

PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 

Recently uploaded (20)

PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 

Some architectures support the ‘memory indirect’ addressing mode. Be.pdf

  • 1. Some architectures support the ‘memory indirect’ addressing mode. Below is an example. In this case, the register R3 contains a pointer to a pointer. Two memory accesses are required to load the data. ADD R1, @(R3) The MIPS CPU doesn’t support this addressing mode. Write a MIPS code that’s equivalent to the instruction above. The pointer-to-pointer is in register $t3. The other data is in register $t1. Solution LW &t2,o(&t1) ; t2=*t1; LW &t3,o($t2) ; t3=**t1; ADD $t3,$t4