Question: Hello, Having some issues I believe I'm using the sar hex operation wrong and would like help understanding it. Secondly, I also believe I'm using
Hello, Having some issues I believe I'm using the sar hex operation wrong and would like help understanding it. Secondly, I also believe I'm using the leaw Hex operator wrong. I've already done question 9). Only requesting help on 8) and 10).
Prompt of the question:
After executing each of the following x86-64 Assembly code snippets, (1) what is the content of the rax register in hex (show your calculations/work in hex). (2) what is the status of each of the four flags (ZF, SF, CF, and OF) and why? Explain each flag status/state in details (i.e., discuss reasons why each of those flags is set, cleared, or unaffected). Assume that the initial value stored in rax prior to executing each of the following code snippets is 0. 
8) movl \$0xFFFF00D9, \%rax sarb $5,%al 9) movl \$0xFFFF00, \%rax andw $0xFF, \%ax 10) movq $0x000000F5,%rbx movl \$5,\%rsi leaw 0FF(%rbx,%rsi,2),%ax
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
