Question: Hi, I need help with my assembly project in linux. I am lost in this class and would like help with how to do this

Hi, I need help with my assembly project in linux. I am lost in this class and would like help with how to do this including explanation.

Hi, I need help with my assembly project in linux. I amlost in this class and would like help with how to dothis including explanation. NM00 10 main.asmx 1 ; Assembler 32bit template 2

NM00 10 main.asmx 1 ; Assembler 32bit template 2 3 bits 32 4 section data 5 ;variables with values go here 6 varA db ? 7 varB dw ? 8 varc dd ? 9 section .bss 11 ; reserved memory goes here 12 vard resd 1 13 14 section .text 15 Your program code goes here 17 global start 18 start: 19 nop 20 21 ;Your program code should go here ; Using the eax register (and its sub-registers), process the following equations 23 ; (ONLY using the mov, add and sub assembly keywords) 24 ; varA + (varB + varC) = vard (varA + varc) - varB = vard 26 mov eax, [varA] add eax, [vars] 28 add eax, [varc] 29 mov [varD], eax 16 22 25 27 20 21 22 23 24 25 26 27 28 29 30 31 ;Your program code should go here ;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 mov eax, [varA] add eax, (varB] add eax, (varc] mov (varD], eax 32 33 34 35 36 37 38 39 ;Do not remove/change the lines below here. ;These exit out of the application and back ito linux in an orderly fashion nop mov eax, 1 ; Exit system call value mov ebx, o Exit return code int 80h ; Call the kernel 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 1.2 Requirement #2 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 1.3 Requirement #3 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!