Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Map out what each step of the processing accomplishes for the assembly code: I don't have my textbook yet and I am having trouble finding

Map out what each step of the processing accomplishes for the assembly code:

I don't have my textbook yet and I am having trouble finding an understandable explanation online for these charts. I am also having trouble deciding the assembly code converted to Y86 in general, so any help, even other examples, would be extremely appreciated.

image text in transcribed

2) Map out what each step of the processing accomplishes for the assembly code from Assignment 2, Question1. a[5] += -65. Mov $40(%eax), %ebx Addq S-65, %ebx Movq %ebx, $40(%eax) To do this, first rewrite them into the Y86 instructions from the X86. Then write out one of these tables below for each instruction. Be sure to use the actual registers you used rather than rA and rB. Remember: you should have a table for each instruction executed. OPI rA, rB - M,[PC] icode:ifun e rA:rB E M,[PC+1] Fetch valP E PC+2 valA + RIrA] valB E RIrB] valE E valB OP valA Decode Execute Set CC Memory Write back RIrB] + valE PC E valP PC update 2) Map out what each step of the processing accomplishes for the assembly code from Assignment 2, Question1. a[5] += -65. Mov $40(%eax), %ebx Addq S-65, %ebx Movq %ebx, $40(%eax) To do this, first rewrite them into the Y86 instructions from the X86. Then write out one of these tables below for each instruction. Be sure to use the actual registers you used rather than rA and rB. Remember: you should have a table for each instruction executed. OPI rA, rB - M,[PC] icode:ifun e rA:rB E M,[PC+1] Fetch valP E PC+2 valA + RIrA] valB E RIrB] valE E valB OP valA Decode Execute Set CC Memory Write back RIrB] + valE PC E valP PC update

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago