Answered step by step
Verified Expert Solution
Question
1 Approved Answer
z=2x - 44m2 + 3 data z byle ? a byle ? instand of ? u can put y byle ? my voloe there they
z=2x - 44m2 + 3 data z byle ? a byle ? instand of ? u can put y byle ? my voloe there they eho, y MOV lode mov ex, ac i Hov a to cart mul eat, a multiply multiply cool by 2 y to choc mul ebol, ebo multiply ebe by eboc 22x Imul ebon, ebol, 2 g cultisty ebox by constant 2 2 Sub Shtroute ebok from eax aidd Bax, 3 add 3 to cux DON z, Casa non result to z ebox . volane GM elements in the following arrays, and assign the value to a symbolic constant named ArraySize. .myArray DWORD 30 DUP(?) b. (12 marks] Write an assembly language program that implements the following expressions: i. A = ((A-C)+(A+B))-((D+B)+C) ii. z = 2x 4y^2 + 3 iii. Rval = Yval * (Yval - (5Zval + 4Xval)) iv. S = 2x^2 + 3zy - 7 (Note: All variables are of type byte) c. [4 marks] Write a loop that iterates through a word array with 6 items and divides the sum by White an assembly language program that implements A = ((A-() + (A+B)) -((1+B) +) A Byte ? 6 Byte ? C Byte Lode A mov eax A add cat, Bi gut A into eax add B to the and store in a old C to eat . could cat D z=2x - 44m2 + 3 data z byle ? a byle ? instand of ? u can put y byle ? my voloe there they eho, y MOV lode mov ex, ac i Hov a to cart mul eat, a multiply multiply cool by 2 y to choc mul ebol, ebo multiply ebe by eboc 22x Imul ebon, ebol, 2 g cultisty ebox by constant 2 2 Sub Shtroute ebok from eax aidd Bax, 3 add 3 to cux DON z, Casa non result to z ebox . volane GM elements in the following arrays, and assign the value to a symbolic constant named ArraySize. .myArray DWORD 30 DUP(?) b. (12 marks] Write an assembly language program that implements the following expressions: i. A = ((A-C)+(A+B))-((D+B)+C) ii. z = 2x 4y^2 + 3 iii. Rval = Yval * (Yval - (5Zval + 4Xval)) iv. S = 2x^2 + 3zy - 7 (Note: All variables are of type byte) c. [4 marks] Write a loop that iterates through a word array with 6 items and divides the sum by White an assembly language program that implements A = ((A-() + (A+B)) -((1+B) +) A Byte ? 6 Byte ? C Byte Lode A mov eax A add cat, Bi gut A into eax add B to the and store in a old C to eat . could cat D
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started