Segment and logical address of operating system and transformation Physical address

Source: Internet
Author: User
The logical address (0,137), (1,4000), (2,3600), the 0,1,2,5 in (5,230) represents the segment number, and the 137,4000,3600,230 represents the amount of displacement. The memory address 50K in segment number 0 indicates the starting address of paragraph No. 0, and 10K indicates the length of the segment. For the logical address (0,137), first find the segment number 0, Physical address = starting address + displacement, that is, physical address =50k+137=50x1024+137=51337. (Note 1k=1024)
for (1,4000), because the displacement is 4000>3x1024, it crosses the line and produces the interrupt signal.
for (2,3600), locate segment number 2, Physical address =70k+3600=70x1024+3600=75280
for (5,230), the segment number of the logical address 5> the table length 4, the crossing occurs, and the interrupt signal is generated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.