SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
May I ask what kind of programing language is the following exersices?
1. Write an instruction sequence to copy the contents of program memory at 0x2010 to data
memory at 0x1030.
Solution
:
ldi ZH, 0x20 ldi ZH, high(0x2010)
ldi ZL, 0x10 ldi ZL, low(0x2010)
lpm r0, Z
sts 0x1030,r0
2. You are given the following instruction sequence, what operations are performed?
ldi YH,0x20
ldi YL,0
ldi r16,10
ld r0,Y
sub r0,r16
st Y,r0
ldd r0,Y+5
sub r0,r16
std Y+5,r0
ldd r0,Y+10
sub r0,r16
std Y+10,r0 ; store back to 0x200A (not 0x2010)

Weitere ähnliche Inhalte

Mehr von Akashayhandicraft789

Measuring treatment outcomes asSolutionThe following is an ext.pdf
Measuring treatment outcomes asSolutionThe following is an ext.pdfMeasuring treatment outcomes asSolutionThe following is an ext.pdf
Measuring treatment outcomes asSolutionThe following is an ext.pdf
Akashayhandicraft789
 
Match the term with the letter corresponding to the definition in th.pdf
Match the term with the letter corresponding to the definition in th.pdfMatch the term with the letter corresponding to the definition in th.pdf
Match the term with the letter corresponding to the definition in th.pdf
Akashayhandicraft789
 

Mehr von Akashayhandicraft789 (9)

Measuring treatment outcomes asSolutionThe following is an ext.pdf
Measuring treatment outcomes asSolutionThe following is an ext.pdfMeasuring treatment outcomes asSolutionThe following is an ext.pdf
Measuring treatment outcomes asSolutionThe following is an ext.pdf
 
Measures of central tendency give information about typical scores i.pdf
Measures of central tendency give information about typical scores i.pdfMeasures of central tendency give information about typical scores i.pdf
Measures of central tendency give information about typical scores i.pdf
 
MC#4 Which of the following statements is most CORRECT a. In a typ.pdf
MC#4 Which of the following statements is most CORRECT a. In a typ.pdfMC#4 Which of the following statements is most CORRECT a. In a typ.pdf
MC#4 Which of the following statements is most CORRECT a. In a typ.pdf
 
May a minor enter into a contract with an adult Are both parties eq.pdf
May a minor enter into a contract with an adult Are both parties eq.pdfMay a minor enter into a contract with an adult Are both parties eq.pdf
May a minor enter into a contract with an adult Are both parties eq.pdf
 
Maximum combustion temperature in gas turbines is of the order of 11.pdf
Maximum combustion temperature in gas turbines is of the order of 11.pdfMaximum combustion temperature in gas turbines is of the order of 11.pdf
Maximum combustion temperature in gas turbines is of the order of 11.pdf
 
Math Analysis questionPlease determine compactness and connectedn.pdf
Math Analysis questionPlease determine compactness and connectedn.pdfMath Analysis questionPlease determine compactness and connectedn.pdf
Math Analysis questionPlease determine compactness and connectedn.pdf
 
Materials questions The intersections of which two lines in a phase.pdf
Materials questions The intersections of which two lines in a phase.pdfMaterials questions The intersections of which two lines in a phase.pdf
Materials questions The intersections of which two lines in a phase.pdf
 
Match the term with the letter corresponding to the definition in th.pdf
Match the term with the letter corresponding to the definition in th.pdfMatch the term with the letter corresponding to the definition in th.pdf
Match the term with the letter corresponding to the definition in th.pdf
 
Match the proposed probability of A with the appropriate verbal desc.pdf
Match the proposed probability of A with the appropriate verbal desc.pdfMatch the proposed probability of A with the appropriate verbal desc.pdf
Match the proposed probability of A with the appropriate verbal desc.pdf
 

Kürzlich hochgeladen

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

May I ask what kind of programing language is the following exersice.pdf

  • 1. May I ask what kind of programing language is the following exersices? 1. Write an instruction sequence to copy the contents of program memory at 0x2010 to data memory at 0x1030. Solution : ldi ZH, 0x20 ldi ZH, high(0x2010) ldi ZL, 0x10 ldi ZL, low(0x2010) lpm r0, Z sts 0x1030,r0 2. You are given the following instruction sequence, what operations are performed? ldi YH,0x20 ldi YL,0 ldi r16,10 ld r0,Y sub r0,r16 st Y,r0 ldd r0,Y+5 sub r0,r16 std Y+5,r0 ldd r0,Y+10 sub r0,r16 std Y+10,r0 ; store back to 0x200A (not 0x2010)