This is an individual homework. You will need access to the course textbook Computer Systems: A Programmer's Perspective, 3rd edition. Problem 0. Show that the assembly language translation of the C function arith() on slide 19 of Lecture 6 returns the correct value by (a) giving an expression for the value arith() returns, and (b) filling in the table below, showing the contents of each register in terms of x, y and z after each of the first six instructions is executed. The first row shows register contents before the first instruction. Remember that the sequence of assembly instructions may not correspond exactly to the C code, as the compiler may rearrange things to minimize the number of instructions and registers used. For your convenience, the assembly code is also given below. Erdi Ersi x %rdxrcx z Krax arith: leaq adda leaq sala C%rdi, Xrsi), Wrax %rdx, Wrax C%rsi,%rsi,2). %rdx $4, %rdx 4(ErdiXrdx), %rcx Xrex, Krax leag 1 isula ret Problem 1. AC fiction declared as Le fontana On CamScanner 04. hort [A] longu atr2: 522 MB search This is an individual homework. You will need access to the course textbook Computer Systems: A Programmer's Perspective, 3rd edition. Problem 0. Show that the assembly language translation of the C function arith() on slide 19 of Lecture 6 returns the correct value by (a) giving an expression for the value arith() returns, and (b) filling in the table below, showing the contents of each register in terms of x, y and z after each of the first six instructions is executed. The first row shows register contents before the first instruction. Remember that the sequence of assembly instructions may not correspond exactly to the C code, as the compiler may rearrange things to minimize the number of instructions and registers used. For your convenience, the assembly code is also given below. Erdi Ersi x %rdxrcx z Krax arith: leaq adda leaq sala C%rdi, Xrsi), Wrax %rdx, Wrax C%rsi,%rsi,2). %rdx $4, %rdx 4(ErdiXrdx), %rcx Xrex, Krax leag 1 isula ret Problem 1. AC fiction declared as Le fontana On CamScanner 04. hort [A] longu atr2: 522 MB search