Question: Create a 32-bit Linux-based assembler language program (nasm) which defines the following variables: varA: a single byte varB: a word varC: a double word varD:
Create a 32-bit Linux-based assembler language program (nasm) which defines the following variables:
varA: a single byte
varB: a word
varC: a double word
varD: a double word
Using the eax register (and its sub-registers), process the following equations (ONLY using the mov, add and sub assembly keywords)
varA + (varB + varC) = varD
(varA + varC) - varB = varD
Using the linux function library, print a string describing each equation, then values in each variable, and then the answer in the resulting variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
