The branches are conditional based on bits in the “condition code register” that were set as the result of some previous ALU operation (xor, add, sub, etc)
The CMP instruction works like subtract, but does not store the result. It ONLY sets bits in the CC register.