Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I need help finishing this problem, could someone please help and explain the process? Task 2: In the program below, write the contents of

Hello, I need help finishing this problem, could someone please help and explain the process? image text in transcribed

Task 2: In the program below, write the contents of SREG after each line finishes executing. Record SREG in the table the first time a line is executed in a loop, follow the program for subsequent executions of the same line but do not record the value in the table. You can assume all memory starts with a value of 0. Command Number 1 SREG S VNZC Program for Task 2 CSEG .ORG 0x0000 Start: LDI R18,3 SUBI R16,1 First: INC R17 MUL R16, R17 CP R1, R18 BRNE First Second: ADD RO, R1 INC R1 BRCC Second CLR R17 DEC R18 BRNE First 10 11 12 What are the contents of R16 and R17 at the end of the program? R16 R17_ Task 2: In the program below, write the contents of SREG after each line finishes executing. Record SREG in the table the first time a line is executed in a loop, follow the program for subsequent executions of the same line but do not record the value in the table. You can assume all memory starts with a value of 0. Command Number 1 SREG S VNZC Program for Task 2 CSEG .ORG 0x0000 Start: LDI R18,3 SUBI R16,1 First: INC R17 MUL R16, R17 CP R1, R18 BRNE First Second: ADD RO, R1 INC R1 BRCC Second CLR R17 DEC R18 BRNE First 10 11 12 What are the contents of R16 and R17 at the end of the program? R16 R17_

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions