Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each instruction below, indicate: whether the data for that operand is found

ID: 3840138 • Letter: F

Question

For each instruction below, indicate: whether the data for that operand is found/stored in: register memory in the instruction itself size of the data (1, 2, 4, or 8 bytes) What addressing mode is used for each operand see table below) give an English description of the instruction example add five to register EAX") add 1 $5, %tax operand 1: data found stored in: _____________ size of data _________ addressing mode ________ operand 2 data found stored in __________ size of data __________ addressing mode _________ Describe subw var, xcx operand 1: data found stored in: _____________ size of data _________ addressing mode ________ operand 2 data found stored in __________ size of data __________ addressing mode _________ Describe mov1 $ptr, %edx operand 1: found stored in: _____________ size of data _________ addressing mode ________ operand 2 data found stored in __________ size of data __________ addressing mode _________ movb %cl, (%esp) operand 1: data found stored in: _____________ size of data _________ addressing mode ________ operand 2 data found stored in __________ size of data __________ addressing mode _________ Describe add w 6 (%ebx, %eax, 4), %si operand 1: data found stored in: _____________ size of data _________ addressing mode ________ operand 2 data found stored in __________ size of data __________ addressing mode _________ Describe

Explanation / Answer

1)

operand 1 :

data found in instruction only(immediate operand).

size of data=32-bit(see the "l"),

addressing mode:Absolute

operand 2:

data found in register eax,

size of data 4bytes,

addressing mode:Absolute

Description: Add 5 to eax and store in eax.

2)

operand 1 :

data stored at memory address VAR,

size of data 16-bit,

address mode:Direct address mode

operand 2:

data found at register CX,

size of data 16 bit,

address mode:Direct address mode.

Description subtract data at var with cx and store in CX

3)

operand 1:

data found in immediate operand $ptr,

size of data:32-bit,

addressing mode:immediate addressing mode.

operand 2:

data found at register edx,

size of data 32-bit,

addressing mode:immediate addressing

description: move $ptr to edx register

4)

operand 1:

data found at register Cl,

size of data 8-bit,

addressing mode:Register addressing mode

operand 2:

data found at memory address [esp+8] ,

size of data 8-bit ,

addressing mode: Based Addressing mode.

Description: move the data at Cl register to memory location at ESP+8

5)

operand 1 :

data fount at memory location [[EBX+EAX*4]+6],

size of data:16-bit,

Addressing mode: Based Index

operand 2:

data found at register Si,

size of data 16-bit,

Addressing mode:register.

Description: Perform 16-bit addition, add data at location  [[EBX+EAX*4]+6] with data at register SI and save the result at SI register.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote