1. If given the total number of pages =12 (0-11) 2. the size of a frame is 256by
ID: 3547339 • Letter: 1
Question
1. If given the total number of pages =12 (0-11) 2. the size of a frame is 256bytes (2^8) (same as page size?) 3. logical address is 001101010111 (12 bits) 4. the size of a word is 16 bitswhat is
a. the logical page number? 53 b. logical page offset? 7 (is this the remainder of (855/16) ) ( where/how is logical address parsed to calculate this?) c. total size in bytes of the program ?????????? d. the total size of a page? 256 bytes or is this 2^16????
Are my answers correct? Urgent Help, please. I need to understand each step to calculate the values not just answer...trying to learn where I am messing up 1. If given the total number of pages =12 (0-11) 2. the size of a frame is 256bytes (2^8) (same as page size?) 3. logical address is 001101010111 (12 bits) 4. the size of a word is 16 bits
what is
a. the logical page number? 53 b. logical page offset? 7 (is this the remainder of (855/16) ) ( where/how is logical address parsed to calculate this?) c. total size in bytes of the program ?????????? d. the total size of a page? 256 bytes or is this 2^16????
Are my answers correct? Urgent Help, please. I need to understand each step to calculate the values not just answer...trying to learn where I am messing up
Explanation / Answer
The page size is 256B yes same as page size
Logical address is 001101010111 i.e, 855 in decimal
256*page number+offset = 855
so page number is 855/256 -> 3
And offset is 855 mod 256 ->87
in binary it is 1010111
Total Size of the program is 12 pages each 256 bytes ->12*256 ->3072Bytes
Total size of the page is 256Bytes
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.