Question: 1.Suppose a program has the following data segment: source BYTE ASSEMBLY, 0 target BYTE LENGTHOF source dup(#) Which of the options below will move the

1.Suppose a program has the following data segment:

source BYTE ASSEMBLY, 0

target BYTE LENGTHOF source dup(#)

Which of the options below will move the address of the L into BOTH eax AND ebx?

A-)

mov eax, OFFSET source + SIZEOF source -2

mov ebx, OFFSET target 3

D-)

mov eax, OFFSET source + SIZEOF source -3

mov ebx, OFFSET target 3

C-)

mov eax, OFFSET source + SIZEOF source -2

mov ebx, OFFSET target 2

B-)

mov eax, OFFSET source + SIZEOF source -3

mov ebx, OFFSET target 2

2.Suppose a program has the following memory layout:

Relative Address

Value

0000

A (ASCII code 41h)

0001

B (ASCII code 42h)

0002

C (ASCII code 43h)

0003

D (ASCII code 44h)

0004

E (ASCII code 45h)

0005

F (ASCII code 46h)

0006

G (ASCII code 47h)

0007

H (ASCII code 48h)

All of the following data segments would result in this memory layout EXCEPT:

A-)

someval WORD 4241h, 4443h

BYTE 45h, 46h, 47h, 48h

C-)

someval DWORD 44434241h

WORD 4645h, 4847h

B-)

Someval BYTE 41h, 42h

WORD 4443h, 4645h, 4847h

D-)

someval WORD 4241h, 4443h

DWORD 45464748h

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!