The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: kaiserimpact on July 28, 2011, 12:31:18 PM

Title: Need help with logical memory
Post by: kaiserimpact on July 28, 2011, 12:31:18 PM
Hello people. i am currently seeking help on logical memory which i have no idea on. Here are the information

Process size: 3126bytes
Page size: 1024bytes
Instruction at memory location 532: load A, 2098
Instruction at memory location 1156: load B, 4087
Instruction at memory location 2086: load C, 1052
data at memory location 1052: 015672
data at memory location 2098: 114321
data at memory loaction 4087: 077435

Whats the page number and page offset for each memory address where the data is stored? and assume the page numbering and offset numbering start at zero.

Basically its dividing from the data at memory location using each of the loads?
Thanks in advance for helping!
Title: Re: Need help with logical memory
Post by: qWord on July 28, 2011, 12:56:44 PM
i_page = linear address / page size
byte_offset = linear address mod page size
Also keep in mind: virtual address <> physical address
Title: Re: Need help with logical memory
Post by: dedndave on July 28, 2011, 05:15:08 PM
what OS are you running ??????
is it a mac ?    :P
Title: Re: Need help with logical memory
Post by: redskull on July 28, 2011, 08:58:13 PM
Quote from: dedndave on July 28, 2011, 05:15:08 PM
is it a mac ?    :P

Looks more like an assignment from a operating systems textbook  ::)
Title: Re: Need help with logical memory
Post by: dedndave on July 28, 2011, 09:06:59 PM
that was actually my thinking, Red
i didn't want to say anything   :P