Question: Create the following assembly. GNU nano 4.9.3 global section _start: start .text mov eax, [value1] add eax, [value2] sub eax, 15 jns exit inc

Create the following assembly. GNU nano 4.9.3 global section _start: start .text mov eax, [value1] add eax, [value2] sub eax, 15 jns exit inc eax exit: mov rax, 60 mov rdi, 0 syscall section .data value1: dd 8 value2: dd 4 value3: dd 2 a. Use the debugger and respective commands to step into the program. Explore, registers, code and source sections and analyze instruction(s) that affected eflags b. (2 marks) Provide the screen capture that demo the eflags (set) affected. c. (2 marks) Explain why these flags were set. d. 1 mark) What was the final value of rax register before the program exited? e. (5 marks) Modify the assembly code a comment or delete the syscall instruction. Use the debugger with respective commands to analyze the results. Provide a screen capture that demo the final result. Was the result affected? why? (explain)
Step by Step Solution
There are 3 Steps involved in it
a To step into the program using the debugger and explore the registers code and source sections you ... View full answer
Get step-by-step solutions from verified subject matter experts
