

The instructions in the application can be divided into requesting specific services from the operating system and what?
Theoretically, the instructions in an application can be divided into instruction sets that are used to request specific services from the operating system and the central processing unit (CPU). The processing flow of CPU operation instructions is roughly divided into several steps: instruction fetch, decoding, execution, memory access, write back, etc.; each instruction requires 1 to 6 bytes, depending on which fields are required.
#The operating environment of this article: windows10 system, thinkpad t480 computer.
Theoretically, the instructions in the application can be divided into two categories: the instruction set of the central processing unit (CPU) and the one used to request specific services from the operating system.
Central Processing Unit (CPU, Central Processing Unit) is a very large-scale integrated circuit and is the computing core (Core) and control core (Control Unit) of a computer. Its function is mainly to interpret computer instructions and process data in computer software.
The central processing unit mainly includes the arithmetic unit (arithmetic logic unit, ALU, Arithmetic Logic Unit) and the cache memory (Cache) and the bus (Data), control and status that realizes the connection between them. Bus). It, together with internal memory (Memory) and input/output (I/O) devices, are collectively known as the three core components of electronic computers.
The processing flow of CPU operation instructions is roughly divided into several steps: instruction fetch, decoding, execution, memory access, write back, etc. Each instruction requires anywhere from 1 to 6 bytes, depending on which fields are required. The first byte of each instruction indicates the type of instruction: the high 4 bits are the code part (for example: 6 is an integer operation instruction), and the low 4 bits are the function part (for example: 1 is a subtraction instruction in the integer class) 61 Together they are the sub command.
Processing instruction flow
An important property of the instruction set is that the byte encoding must have a unique interpretation. Any sequence of bytes either encodes a unique instruction sequence or is not a valid sequence of bytes. Because the first byte of each instruction has a unique combination of code and function, given this byte, we can determine the length and meaning of all other additional bytes.
Each instruction requires 1 to 6 bytes, depending on which fields are required. The first byte of each instruction indicates the type of instruction: the high 4 bits are the code part (for example: 6 is an integer operation instruction), and the low 4 bits are the function part (for example: 1 is a subtraction instruction in the integer class) 61 Together they are the sub command.
The following is the flow chart for processing each instruction:
fetch
get value The stage reads the instruction byte from the memory and places it in the instruction memory (in the CPU), and the address is the value of the program counter (PC). It calculates the address of the next instruction following the current instruction in a sequential manner (that is, the value of the PC plus the length of the fetched instruction).
Decoding (decode)
The ALU reads up to two operands from the register file (a collection of general-purpose registers). (That is, the contents of two registers can be read at most at one time)
Execution(execute)
In the execution phase, the arithmetic/logical unit ( ALU) are used for different purposes. For other instructions, it will act as an adder to calculate increment or decrement the stack pointer, or calculate the effective address, or simply add 0, passing an input to the output.
The condition code register (CC) has three condition bits. The ALU is responsible for calculating the new value of the condition code. When a jump instruction is executed, the branch signal cnd is calculated based on the condition code and jump type.
Memory access (memory)
In the memory access phase, the data memory (in the CPU) reads or writes a memory word. Instruction and data memory access the same memory locations, but for different purposes.
Write back(write back)
The write back phase can write up to two results to the register file. The register file has two write ports. Port E is used to write the value calculated by the ALU, while port M is used to write the value read from the data memory.
Update PC(PC update)
According to the instruction code and branch flag, select the next PC value from the signal values obtained in the previous steps.
The above is the detailed content of The instructions in the application can be divided into requesting specific services from the operating system and what?. For more information, please follow other related articles on the PHP Chinese website!

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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics



If you encounter the Unable to save changes error while using the Photos app for image editing in Windows 11, this article will provide you with solutions. Unable to save changes. An error occurred while saving. Please try again later. This problem usually occurs due to incorrect permission settings, file corruption, or system failure. So, we’ve done some deep research and compiled some of the most effective troubleshooting steps to help you resolve this issue and ensure you can continue to use the Microsoft Photos app seamlessly on your Windows 11 device. Fix Unable to Save Changes to Photos App Error in Windows 11 Many users have been talking about Microsoft Photos app error on different forums

What is Boundless Notes on iPhone? Like the iOS17 Diary app, Boundless Notes is a productivity app with tons of creative potential. It’s a great place to turn ideas into reality. You can schedule projects, brainstorm ideas, or create mood boards so you never run out of space to express your ideas. The app allows you to add photos, videos, audios, documents, PDFs, web links, stickers, and more anywhere on an unlimited canvas. Many of the tools in Boundless Notes (like brushes, shapes, and more) will be familiar to anyone who uses iWork apps like Keynote or Notes. Real-time collaboration with colleagues, teammates, and group project members is also easy because Freeform allows

View macOS Clipboard History from Finder When you copy anything on your Mac (text, images, files, URLs, etc.), it goes to the Clipboard. Here's how to see what was last copied on your Mac. Go to Finder and click "Edit" in the menu bar. Click "Show Clipboard". This will open a window showing the contents of the macOS clipboard. Get Clipboard History Containing Multiple Items in Mac Of course, native Mac Clipboard History isn't the most versatile tool you can have. It only shows the last thing you copied, so if you want to copy multiple things at once and then paste them all together, you simply can't do that. However, if you are looking for

How to get items using commands in Terraria? 1. What is the command to give items in Terraria? In the Terraria game, giving command to items is a very practical function. Through this command, players can directly obtain the items they need without having to fight monsters or teleport to a certain location. This can greatly save time, improve the efficiency of the game, and allow players to focus more on exploring and building the world. Overall, this feature makes the gaming experience smoother and more enjoyable. 2. How to use Terraria to give item commands 1. Open the game and enter the game interface. 2. Press the "Enter" key on the keyboard to open the chat window. 3. Enter the command format in the chat window: "/give[player name][item ID][item quantity]".

In Windows, the Photos app is a convenient way to view and manage photos and videos. Through this application, users can easily access their multimedia files without installing additional software. However, sometimes users may encounter some problems, such as encountering a "This file cannot be opened because the format is not supported" error message when using the Photos app, or file corruption when trying to open photos or videos. This situation can be confusing and inconvenient for users, requiring some investigation and fixes to resolve the issues. Users see the following error when they try to open photos or videos on the Photos app. Sorry, Photos cannot open this file because the format is not currently supported, or the file

The Apple Vision Pro headset is not natively compatible with computers, so you must configure it to connect to a Windows computer. Since its launch, Apple Vision Pro has been a hit, and with its cutting-edge features and extensive operability, it's easy to see why. Although you can make some adjustments to it to suit your PC, and its functionality depends heavily on AppleOS, so its functionality will be limited. How do I connect AppleVisionPro to my computer? 1. Verify system requirements You need the latest version of Windows 11 (Custom PCs and Surface devices are not supported) Support 64-bit 2GHZ or faster fast processor High-performance GPU, most

When a friend's computer is missing certain files, the application cannot start normally with error code 0xc000012d. In fact, it can be solved by re-downloading the files and installing them. The application cannot start normally 0xc000012d: 1. First, the user needs to download ".netframework". 2. Then find the download address and download it to your computer. 3. Then double-click on the desktop to start running. 4. After the installation is completed, return to the wrong program location and open the program again.

Microsoft Paint not working in Windows 11/10? Well, this seems to be a common problem and we have some great solutions to fix it. Users have been complaining that when trying to use MSPaint, it doesn't work or open. Scrollbars in the app don't work, paste icons don't show up, crashes, etc. Luckily, we've collected some of the most effective troubleshooting methods to help you resolve issues with Microsoft Paint app. Why doesn't Microsoft Paint work? Some possible reasons why MSPaint is not working on Windows 11/10 PC are as follows: The security identifier is corrupted. hung system