Running Hello World in Assembly Language on Android

Running Hello World in Assembly Language on Android

Principle of Ximen Chui Xue This article explains how to write a GNU ARM assembly program and run it on an Android phone. (1) Why Learn ARM Assembly? If learning is only done when needed, then nothing needs to be learned in advance. The situation of “learning when needed” often exists and makes sense; your … Read more

Microcontroller Basic Assembly Language Programming Examples

Microcontroller Basic Assembly Language Programming Examples

1. Write a program to implement the logic function “P1.4=P1.0∨(P1.1∧P1.2)∨P1.3” using bit manipulation instructions. MOV C,P1.1 ANL C,P1.2 ORL C,P1.0 ORL C,P1.3 MOV P1.3,C 2. Write a program that jumps to the LABLE storage unit if the contents of accumulator A meet the following conditions. Assume the unsigned number is stored in A. (1) A≥10; … Read more

Assembly Language: A Timeless Tree in Programming

Assembly Language: A Timeless Tree in Programming

Some rankings can remain unchanged for centuries, like the eight great masters of the Tang and Song dynasties.The names of Han Yu, Liu Zongyuan, Ouyang Xiu, Su Xun, Su Shi, Su Zhe, Zeng Gong, and Wang Anshi will never be replaced. Some rankings are updated annually, such as the annual box office ranking of movies. … Read more

Introduction to Assembly Language: Underlying Principles

Introduction to Assembly Language: Underlying Principles

Author: Ruan Yifeng Link:http://www.ruanyifeng.com/blog/2018/01/ Code Farmer’s Way High-Quality Technical Article Directory of Code Farmer’s Way (Click Me) About Code Farmer’s Way (Click Me) Learning programming is essentially learning high-level languages, which are designed for humans. However, computers do not understand high-level languages; they must be converted into binary code through a compiler to run. Knowing … Read more

Accurate Delay Methods for 51 Microcontroller

Accurate Delay Methods for 51 Microcontroller

There are generally two methods for implementing precise delays in the 51 microcontroller: one is hardware delay, which requires the use of timers/counters. This method can improve CPU efficiency and achieve precise delays; the other is software delay, which mainly uses loops. 1 Using Timer/Counter for Precise Delay The microcontroller system typically selects an 11.0592 … Read more

What Is the Function of the Microcontroller Startup File?

What Is the Function of the Microcontroller Startup File?

Author: Lao Ma Shi Tu Microcontroller When we create a 51 microcontroller project using Keil C51, we will see a prompt as shown in the following image: Keil prompts whether to add a startup file when creating a new project Generally, you need to choose “Yes”. Of course, you can also choose not to add … Read more

Analysis of the Chain of Line Control Braking Technology in the ADAS Market

Analysis of the Chain of Line Control Braking Technology in the ADAS Market

“Introduction“: Line control braking: the foundation of autonomous driving, the technological high ground of automotive execution layers. Focusing on core technologies of the execution layer, increasing investment in the trillion-yuan ADAS market. As L3+ level autonomous driving regulations gradually take effect, local ADAS solutions are moving to the forefront (with a share close to 40% … Read more

Key Considerations for Mixed C and Assembly Programming in Keil

Key Considerations for Mixed C and Assembly Programming in Keil

Click the above “Chuangxue Electronics” to follow and easily learn electronic knowledge. Chuangxue Electronics Subscription Daily updates of technical articles in the electronics industry and the latest news on microcontrollers, learn easily anytime, anywhere. Here are some issues encountered in mixed programming of C language and assembly language in Keil, written down for future reference. … Read more

Analysis of ARM Assembly and C/C++ Interoperability

Analysis of ARM Assembly and C/C++ Interoperability

Interoperability Between C Language and ARM Assembly Language 1. Accessing C Language Global Variables from Assembly Global variables can only be accessed indirectly through their addresses. To access global variables in C, you must first introduce the global variable using the extern directive, and then load its address into a register. For unsigned char type, … Read more