News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Need help with logical memory

Started by kaiserimpact, July 28, 2011, 12:31:18 PM

Previous topic - Next topic

kaiserimpact

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!

qWord

i_page = linear address / page size
byte_offset = linear address mod page size
Also keep in mind: virtual address <> physical address
FPU in a trice: SmplMath
It's that simple!

dedndave

what OS are you running ??????
is it a mac ?    :P

redskull

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  ::)
Strange women, lying in ponds, distributing swords, is no basis for a system of government

dedndave

that was actually my thinking, Red
i didn't want to say anything   :P