Question: X86-64 addressing. For the x86-64 assembly language instructions shown below, write the addressing mode (one of the 11 modes from Figure 3.3 page 181 in
X86-64 addressing. For the x86-64 assembly language instructions shown below, write the addressing mode (one of the 11 modes from Figure 3.3 page 181 in the 3rd edition of the text) for both the source and the destination operand. Assume that the labels array and x appear in the .data section of the program (that is, they are C static storage class variables). Addressing mode should specify Immediate, Register or Memory. If Memory, addition information from the Name column should be included.


4. x86-64 addressing. For the x86-64 assembly language instructions shown below, write the addressing mode (one of the 11 modes from Figure 3.3 page 181 in the 3rd edition of the text) for both the source and the destination operand. Assume that the labels array and x appear in the .data section of the program (that is, they are C static storage class variables). Addressing mode should speci Immediate, Register or Memory. If Memory, addition information from the Name column should be included. Source addressing mode Destination addressing mode movq orsi),7orax movq Sarray, %rcx. xorq %rdx, %rdx add (%rcx,%rax,8), %rdx movq $0x100, 40%rcx,%rax,8) Same as source addressing mode incq x movq sox 100, (%rsi) movq %rcx, array(,%rcx, 4) 4. x86-64 addressing. For the x86-64 assembly language instructions shown below, write the addressing mode (one of the 11 modes from Figure 3.3 page 181 in the 3rd edition of the text) for both the source and the destination operand. Assume that the labels array and x appear in the .data section of the program (that is, they are C static storage class variables). Addressing mode should speci Immediate, Register or Memory. If Memory, addition information from the Name column should be included. Source addressing mode Destination addressing mode movq orsi),7orax movq Sarray, %rcx. xorq %rdx, %rdx add (%rcx,%rax,8), %rdx movq $0x100, 40%rcx,%rax,8) Same as source addressing mode incq x movq sox 100, (%rsi) movq %rcx, array(,%rcx, 4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
