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

Given the following information for an assembly language program: Job size = 312

ID: 3722992 • Letter: G

Question

Given the following information for an assembly language program:
Job size = 3126 bytes Page size = 1024 bytes Instruction at memory location 532: Load 1, 2098 Instruction at memory location 1156: Add 1, 2087 Instruction at memory location 2086: Sub 1, 1052 Data at memory location 1052: 015672 Data at memory location 2098: 114321 Data at memory location 2087: 077435
a. How many pages are needed to store the entire job? b. Compute the page number and the displacement for each of the byte addresses where the data is stored. c. Determine whether the page number and displacements are legal for this job. d. Explain why the page number and/or displacements may not be legal for this job. e. Indicate what action the operating system might take when a page number or displacement is not legal.

Explanation / Answer

1) 3126/1042 = 3. Three Pages : Page 0, Page 1, Page 2

2)MemoryMemory location 1052 = Page 1, displacement 10

.Memory location 2098 = Page 2, displacement 14

Memory location 4087 = Page 3, displacement 961


3)The third page (Page 3) is not legal where as other two pages 0 and 1 is legal

4) 4087 is not within its boundary as Job size is 3126. Where as displacement of 961 is within the boundary as page size is 1024

5) The OS would issue an error message to indicate that access to out of bounds memory had been attempted and Job will terminate

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