title: How to check if a register is zero in x86_64 assembly
body: <p>I'm trying to check if a value is zero in x86_64 assembly code. I know that this usually consist of a <code>cmp</code> variant followed by a <code>jmp</code> variant, but I'm not sure of the exact instructions to use.</p>