


The address lines of 8086CPU are 20, and the maximum addressable storage space is 1MB. Why is it
Answer: The addressing range of 8086 CPU is 1MB. This is because the 8086 CPU has 20 address lines, and 2^20 equals 1024KB, which is 1MB. However, in the 8086 system, instructions only provide 16-bit addresses, and the registers related to addressing are only 16 bits long. Therefore, the addressing range is only 64KB. In order to be able to address 1MB of memory space, the 8086 CPU divides the memory into four logical segments. When the CPU accesses memory, the contents of the segment register (segment base address) are automatically shifted left by 4 bits (in binary representation), and then added to the 16-bit address offset within the segment to form a 20-bit physical address.
In segmented structured memory, each logical address consists of a 16-bit segment base address and offset address.
Physical address: The absolute address of the memory, from 00000H~FFFFFH, is the actual addressing address of the CPU accessing the memory (also called the absolute address)
The 16-bit segment base address is shifted left by 4 bits (equivalent to adding 4 "0"s after the lowest bit of the segment base address), and is added to the offset address to obtain the physical address.
Physical address=segment base address*16 offset address
?
In segmented structured memory, each logical address consists of a 16-bit segment base address and offset address.
Physical address: The absolute address of the memory, from 00000H~FFFFFH, is the actual addressing address of the CPU accessing the memory (also called the absolute address)
The 16-bit segment base address is shifted left by 4 bits (equivalent to adding 4 "0"s after the lowest bit of the segment base address), and is added to the offset address to obtain the physical address.
Physical address=segment base address*16 offset address
12 Assembly language. 1. The maximum storage space allowed by 80868088CPU is
(1/2)Assembly language. 1. The maximum storage space allowed by 8086/8088 CPU is (1MB 65520), and its physical address number is from (00000) to (ffff0 ffff 1=10FFF0)H. 2. The hexadecimal number of decimal number -46 is expressed as (0FFD2h or 0D2H)
The hexadecimal representation of the decimal number 46 is 2EH
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>debug
-a
0AFE:0100 mov ax,2e
0AFE:0103 xor bx,bx
0AFE:0105 sub bx,ax
0AFE:0107
-t
AX=002E BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0AFE ES=0AFE SS=0AFE CS=0AFE IP=0103 NV UP EI PL NZ NA PO NC
0AFE:0103 31DB XOR BX,BX
-t
AX=002E BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0AFE ES=0AFE SS=0AFE CS=0AFE IP=0105 NV UP EI PL ZR NA PE NC
0AFE:0105 29C3 SUB BX,AX
-t
AX=002E BX=FFD2 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0AFE ES=0AFE SS=0AFE CS=0AFE IP=0107 NV UP EI NG NZ AC PE CY
0AFE:0107 0029 ADD [BX DI],CH DS:FFD2=00
-
How many addressable spaces are there in the 8086 system? How big are each
Registers are 16-bit. For example, AX, BX, SI, and DI are all 16-bit. The address codes they can represent are only 16-bit. 2 to the 16th power is equal to 64K. This is the memory space that we as programmer can directly access through registers. The address bus provided by the 8086/8088 CPU has 20 bits, and 2 to the 20th power is equal to 1M. This is the maximum memory space that the CPU can access by itself.
There is a contradiction: the CPU can access 1M memory, but the register can only represent 64K memory size. Therefore, the concepts of segment address and offset address are introduced. Divide this 1M memory space into segments of 64K size, specify which segment, and then add an "offset address" at the beginning of this segment. Doesn't this allow you to access any space in 1M memory?
How to get the segment address:
For example, a character variable STR
is declared somewhere in the assembly data segment.MOV DX,SEG STR
Through the SEG statement, the segment address of STR can be taken out and sent to DX.
I hope the above content will be helpful to you!
The above is the detailed content of Why does the 8086CPU have 20 address lines but the maximum addressable storage space is only 1MB?. For more information, please follow other related articles on the PHP Chinese website!

Do you wonder how to find Resident Evil 4 saves? How to back up Resident Evil 4 saves? This post from php.cn provides 3 ways for you to back up Resident Evil 4 saves. Now, keep on your reading.

If someone tries to access your computer by inputting numerous key combinations, your computer is at a higher risk of being opened. Therefore, it is quite needed to limit the number of login attempts. How to do it? Read this php.cn post.

Cfgmgr32.dll missing errors often happen to annoy people a lot and leave some more severe issues in your Windows. So, what should you do when you run into the Cfgmgr32.dll not found issue? This post on php.cn Website will tell you some methods.

Have you ever encountered a problem where the Windows lock screen timeout is not working? Fortunately, several feasible solutions are available in this post from php.cn. Applying these fixes, you can address this annoying issue effectively.

Microsoft has released Windows 11 23H2 (the Windows 11 2023 Update) for a while. Do you want to install this update on your device? What are the new features in it? How to get this update immediately? Now, you can get the information from this php.cn

Windows Defender can protect your computer and the files on the device from attacks or infection of malware and viruses. However, sometimes, you need to bypass Windows Defender due to some reason. In this post on php.cn Website, we will introduce 3 w

When trying to copying or transferring files from mobile phones to your computer, you might get the Data supplied is of wrong type error message. If you have no idea about how to address it, this post on php.cn Website can help you out.

Want to revert changes you have made to Microsoft Excel? Here this article on php.cn Software aims to show you how to reset Excel to default settings in Windows 10 with the most effective ways.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment