Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Question Can life insurance be used in a Keogh (HR 10) plan?

Answered: 1 week ago