Assembly Language Programming Notes

Assembly Language Programming Notes

Chapter 1 Basic Knowledge 1.1 Machine Language Machine language is a collection of machine instructions. Machine instructions are commands that a machine can execute correctly. 1.2 The Emergence of Assembly Language The main body of assembly language consists of assembly instructions. The difference between assembly instructions and machine instructions lies in their representation. Assembly instructions … Read more

Detailed Exploration of MIPS Architecture: From Origins to Features

Detailed Exploration of MIPS Architecture: From Origins to Features

Similarly, we will reformat the content according to the instructions above. The difference is that this time the content needs to be over 1200 words. The content to be formatted is as follows: MIPS (Microprocessor without Interlocked Pipelined Stages) is a reduced instruction set computer (RISC) instruction set architecture (ISA) developed by MIPS Computer Systems. … Read more

Embedded Learning Day 2

Embedded Learning Day 2

The Cortex-M3 processor features general-purpose registers R0-R15 along with several special function registers. Registers R0-R12 are 32-bit general-purpose registers used for data operations. However, most 16-bit Thumb instructions can only use R0-R7 (the low register group), while 32-bit Thumb-2 instructions can access all general-purpose registers. The special function registers have predefined functions and must be … Read more

C Language: Bit Manipulation and Registers

C Language: Bit Manipulation and Registers

Bit Manipulation Operators The bit manipulation operators in C language include bitwise AND (&), bitwise OR (|), bitwise XOR (^), bitwise NOT (~), left shift (<<), and right shift (>>). Bitwise AND (&): The result bit is 1 only when both corresponding binary bits of the operands are 1; otherwise, it is 0. For example, … Read more

A Ten-Minute Introduction to MIPS Programming

A Ten-Minute Introduction to MIPS Programming

This article introduces the MIPS architecture and its assembly language from four aspects: 1. Types of Registers 2. Arithmetic and Addressing Instructions 3. Program Structure 4. System Calls The tool required is: Mars 4.4 Download link: http://courses.missouristate.edu/KenVollmar/mars/download.htm 1 Data Types 1. All MIPS instructions are 32 bits long 2. 1 byte = 8 bits, half-word … Read more

How Do Computers Recognize Code? Starting from Assembly Language

How Do Computers Recognize Code? Starting from Assembly Language

▼For more exciting recommendations, please follow us▼ Learning programming is essentially learning high-level languages, which are computer languages designed for humans. However, computers do not understand high-level languages; they must be converted into binary code through a compiler to run. Knowing a high-level language does not equate to understanding the actual execution steps of a … Read more