Instructions-II
Learn about logical comparison with TST, comparison of two operands with CMP, and comparison between TST and CMP.
We'll cover the following...
Logical compare: TST
This instruction computes the bit-wise logical AND
between both operands and sets flags (including Z
) according to the computed result, which is discarded.
Press + to interact
TST reg, regTST reg, #imm
Examples
TST x0, #4
Suppose the x0
register contains 4 (which in binary is )
AND ...
Access this course and 1400+ top-rated courses and projects.