SlideShare a Scribd company logo
1 of 1
Download to read offline
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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,.pdffashionscollect
 
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.pdffashionscollect
 
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.pdffashionscollect
 
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 .pdffashionscollect
 
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.pdffashionscollect
 

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

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
Đề 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 sinhleson0603
 
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 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
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
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
 
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 Partnershipsexpandedwebsite
 
ĐỀ 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
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
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
 
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
 
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
 
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
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
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.pptxMarlene Maheu
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
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
 

Recently uploaded (20)

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Đề 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
 
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
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
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
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
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
 
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
 
ĐỀ 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...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
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Ư...
 
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
 
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...
 
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
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
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
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
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
 

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