Home / Expert Answers / Computer Science / this-assignment-is-used-to-get-familiar-with-the-setup-for-your-environment-for-masm-and-build-a-tem-pa607

(Solved): This assignment is used to get familiar with the setup for your environment for MASM and build a tem ...



This assignment is used to get familiar with the setup for your environment for MASM and build a template for future assignments. Requirements: The answer MUST be stored in a variable of the correct data type given your data. The values for your data MUST be store(d)/(a)ssigned in register, NOT variables. Create two (2) string that could accompany the prompt and answer in an input and output statement, respectively. Make sure to NOT forget to store the length of both messages in a variable Comment each line of code on what it is doing. EX: mov ax, 3 ; Move literal 3 to register ax Problems: Create an assembly program that computes the following formula: Y_(1)=(x_(1)+x_(2))*(x_(3)-x_(4))/(2), where x_(1),x_(2),x_(3), and x_(4) are integer values Mnemonics Instruction Formats: Where reg, mem, imm, accum is register, memory, immediate, and accumulator, respectively. Where reg, mem, imm, accum is register, memory, immediate, and accumulator, respectively. MUL source Multiplies source operand by the value in the( r)/(e)()/(ax) register; result in( r)/(e)()/(ax) register DIV source Divides rdx:rax ()/() edx:eax register by the source operand; quotient goes in ra(x)/(e)ax, remainder is in rd(x)/(e)dx


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe