To achieve (no stack operation?), can greatly improve the access efficiency of the function.
Function prototype
extern void _nop_ (void);
extern bit _testbit_ (bit);
extern unsigned char _cror_ (unsigned char, unsigned char);
extern unsigned int _iror_ (unsigned int, unsigned char);
extern unsigned long _lror_ (unsigned long, unsigned char) );
extern unsigned char _crol_ (unsigned char, unsigned char);
extern unsigned int _irol_ (unsigned int, unsigned char);
extern unsigned long _lrol_ (unsigned long, unsigned char);
extern unsigned char _chkfloat_(float);
header file
#include
illustrate
extern void _nop_ (void);
Generates a nop instruction
extern bit_testbit_ (bit);
generates a JBC instruction, returns 1 if the bit is set, otherwise 0; can only be used for directly addressed bit variables, not for expressions
Among
extern unsigned char _cror_ (unsigned char val, unsigned char n);
(unsigned char)val right shift n bits
extern unsigned int _iror_ (unsigned int val, unsigned char n));
(unsigned int)val right shift n bits
extern unsigned long _lror_ (unsigned long val, unsigned char n));
(unsigned long)val right shift n bits
extern unsigned char _crol_ (unsigned char val, unsigned char n));
(unsigned char)val left shift n bits
extern unsigned int _irol_ (unsigned int val, unsigned char n));
(unsigned int)val left shift n bits
extern unsigned long _lrol_ (unsigned long val, unsigned char n));
(unsigned long)val left shift n bits
extern unsigned char _chkfloat_(float);
Test and return the status of float
The following is from the help document of keil C51
0 Standard floating-point numbers
1 Floating-point value 0
2 +INF (positive overflow)
3 -INF (negative overflow)
4 NaN (Not a Number) error status
References
Li Jun et al. 51 Series MCU Advanced Example Development Guide. Beijing-Beijing University of Aeronautics and Astronautics Press 2004
Keil Software, Inc. C51 User's Guide
Previous article:Design of LED display screen control circuit based on single chip microcomputer
Next article:Using a single-chip microcomputer to realize an electronic clock (assembly)
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Industry first! Xiaopeng announces P7 car chip crowdfunding is completed: upgraded to Snapdragon 8295, fluency doubled
- P22-009_Butterfly E3106 Cord Board Solution
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Set-top box chip STI8036, low ripple, low noise
- Overvoltage and overcurrent protection circuit of power supply
- Design of high-speed communication between digital signal processor and PC
- msp430f149 communicates with mobile phone via Bluetooth HC-05
- Inventory of brain-burning remedial measures after PCB back drilling leakage
- TI can solve common problems of high-precision ultrasonic flow measurement at low flow rates
- c2000 I2C read register frame format reference routine
- Javascript Smart Watch
- Introduction to Zigbee communication technology transmission distance and wall penetration capability
- 51 single chip microcomputer