Question: Please show working code, and/or output if possible. I included the registers and the output that I'm looking to get. I also include the assembly
Please show working code, and/or output if possible. I included the registers and the output that I'm looking to get. I also include the assembly code outline that I'm using. Will give thumbs up for good answers. 
Assignment: Calculator Description: addition (+), subtraction (-), multiplication (*), integer division(), modulo division (%), and Write a calculator program in assembly. It should handle the following functions exponentiation (^). Your prog ram should. 1. Read an integer from the user 2. Read a character from the user, representing the function. (+,-, *, /, %, ^) 3. Read another integer from the user 4. Print an equals sign ? 5. Print the result. Please comment your code, and format it so that it looks clean! Register Dump # 1 EAX 00000003 EBX00000002 ECK00000003 EDXEF808234 ESI00000060 EDI-E779F000 ESPFF8081D FLAGS 0216 AF PF andrew@dev:/calculator$ ./calculator 17 segment .data - This is input ? This is input - This is input - This is output - This is output segment.bss segment-text 28 global asm_main asm main: andrew@dev:~/calculator$ ./calculator push ebp mov ebp, esp CODE STARTS HERE 25 CODE ENDS HERE****74 mov mov pop ret eax, esp, ebp ebp andrew@dev:~/calculators ./calculator 10 110 Assignment: Calculator Description: addition (+), subtraction (-), multiplication (*), integer division(), modulo division (%), and Write a calculator program in assembly. It should handle the following functions exponentiation (^). Your prog ram should. 1. Read an integer from the user 2. Read a character from the user, representing the function. (+,-, *, /, %, ^) 3. Read another integer from the user 4. Print an equals sign ? 5. Print the result. Please comment your code, and format it so that it looks clean! Register Dump # 1 EAX 00000003 EBX00000002 ECK00000003 EDXEF808234 ESI00000060 EDI-E779F000 ESPFF8081D FLAGS 0216 AF PF andrew@dev:/calculator$ ./calculator 17 segment .data - This is input ? This is input - This is input - This is output - This is output segment.bss segment-text 28 global asm_main asm main: andrew@dev:~/calculator$ ./calculator push ebp mov ebp, esp CODE STARTS HERE 25 CODE ENDS HERE****74 mov mov pop ret eax, esp, ebp ebp andrew@dev:~/calculators ./calculator 10 110
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
