Instructions-I

Learn about PSTATE flags, conditional jumps, function return value, and testing for 0.

The PSTATE flags

In addition to registers, the CPU also contains a 32-bit PSTATE where four individual bits N, Z, C, and V are set or cleared in response to arithmetic and other operations. Separate machine instructions can manipulate some bit values, and their values affect code execution. These flags have their own special register, NZCV. The illustration below shows the four individual bits:

Get hands-on with 1200+ tech skills courses.