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

1. Determine the physical address of a memory location given by 0A51:CD90h. 2. A

ID: 3586512 • Letter: 1

Question

1. Determine the physical address of a memory location given by 0A51:CD90h. 2. A memory location has a physical address 4A378h. Compute a. the offset address if the segment number is 40FFh. b. the segment number if the offset address is 1238h. 3. which of the following are legal assembly language numbers for MASMS? If they are legal, tell whether they are binary, decimal, or hex numbers. a. 246 b. 246h c. 1001 d. 1,101 e. 2A3h f. FFFEh h. Bh i. -1110b 4. If it is legal, give data definition directives to define each of the following a. A word variable A initialized to 52. b. A word variable wORD1, uninitialized. c. A byte variable B, initialized to 25h d. A byte variable c1, uninitialized. f. A word array ARRAY1, initialized to the first 5 positive integers. g a constant BELL equal to 07h. h. a constant MSG equal to THIS IS A HESSAGES 5. Suppose that the following data are loaded at offset e000h. A DB 7 C DB HELLO D DD 1234" a. Give the offset address assigned to variables A, B, c, and D. b. Give the hex contents of the byte at offset 0092h. c. Give the hex contents of the byte at offset 0004h. d. Give the offset address of the character 'o' in 'HELLO e. Give the hex contents of the low word of the variable D.

Explanation / Answer

1) To calculate the effective address of the memory, BIU uses the following formula:

Effective Address = Starting Address of Segment + Offset.

To find the starting address of the segment, BIU appends the contents of Segment Register with 0H.

If the data at any location has a logical address specified as:

2222 H : 0016 H

Then, the number 0016 H is the offset.

2222 H is the value of Data Segment Register..

Then, it adds offset to it.

Therefore, in our question:

EA : 0 A 5 1 0 H

+ C D 9 0 H

= 0 6 2 A 0 H.

AS PER THE CHEGG GUIDELINES, IN CASE OF MULTIPLE QUESTION, EXPERTS CAN ANSWER ONLY THE FIRST QUESTION.

THANK YOU.