The content of the memory unit is the binary data stored in the memory unit, such as 0100011.
#The content stored in the computer's storage unit can be data and instructions. The memory unit address is a hexadecimal number pointing to a specific unit of memory, such as 0FFE2A. One is the actual data, and the other is the address pointing to the data. So it can be data or instructions. (Recommended learning: PHP video tutorial)
The storage unit should generally have the function of storing data and reading and writing data, using 8-bit binary as a storage Unit, that is, a byte. Each unit has an address, which is an integer encoding and can be represented as a binary integer.
The variables in the program correspond to the storage units of the main memory. The name of the variable corresponds to the address of the storage unit, and the content of the variable corresponds to the data stored in the unit.
Storage addresses are generally represented by hexadecimal numbers, and each memory address stores a set of binary (or hexadecimal) numbers, which are usually called the contents of the address.
The smallest unit of information in a computer is bit, which is a binary bit. 8 bits make up a Byte, which is a byte. One storage unit can store one byte, which is 8 binary bits. The memory capacity of a computer is calculated in bytes as the smallest unit. For a memory with 128 storage units, it can be said that its capacity is 128 bytes.
If there is a 1KB memory, it has 1024 storage units, and its numbers are from 0-1023. The memory is divided into several storage units, and each storage unit is numbered sequentially starting from 0. For example, if a memory has 128 storage units, its number is from 0-127.
Storage addresses are generally represented by hexadecimal numbers, and each memory address stores a set of binary (or hexadecimal) numbers, which are usually called the contents of the address.
It is worth noting that The address of the storage unit and the content in the address are different. The former is the number of the storage unit, which represents a total location of the memory, while the latter represents the data stored in this location. Just like one is the room number and the other is the person living in the room.
The storage unit that stores a machine word is usually called a word storage unit, and the corresponding unit address is called a word address. The unit that stores one byte is called a byte storage unit, and the corresponding address is called a byte address. If the smallest addressable unit in a computer is a word storage unit, the computer is called a word-addressable computer. If the smallest addressable unit in a computer is a byte, the computer is called a byte-addressable computer. If the machine word length is equal to the number of bits in the memory unit, a machine word can contain several bytes, so a memory unit can also contain several byte addresses that can be individually addressed. For example, a 16-bit binary word storage unit can store two bytes and can be addressed by word address or byte address. When addressing with byte address, the 16-bit storage unit occupies two byte addresses. For more PHP related technical articles, please visit thePHP Graphic Tutorial column to learn!
The above is the detailed content of What is stored in a computer's storage unit. For more information, please follow other related articles on the PHP Chinese website!

1. Ao3 official website quark entrance☜☜☜☜☜☜Click to save. 2. Ao3 Quark entrance official website☜☜☜☜☜☜☜Click to save. 【ao3】1. AO3 (Archive of Our Own) is a huge online archive website created by fans. 2. It mainly contains fan works, covering a wide variety of media, from books and movies to TV series and games, almost everything is included. 3. AO3 has rich content and diverse types, which can meet the needs of different readers.

1. Ao3 mirror URL Quark☜☜☜☜☜☜☜☜ Click to enter. 2. Ao3 mirror address quark entrance ☜☜☜☜☜☜☜ Click to enter. 3. AO3 (Archives Our Own) is a non-profit fan and fan-fiction archive website launched on October 29, 2008. 4. AO3 is a website founded by fans and run by fans, dedicated to protecting the works created by fans and providing a censorship-free environment for fan novel writers.

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
