mov %rdi,%r9
mov $0x0,%eax
mov $0xffffffffffffffff,%rcx
repnz scas %es:(%rdi),%al
not %rcx
sub $0x1,%rcx
So I am aware of what the repnz instruction does, but what is the purpose of not %rcx and %sub %rcx?
mov %rdi,%r9
mov $0x0,%eax
mov $0xffffffffffffffff,%rcx
repnz scas %es:(%rdi),%al
not %rcx
sub $0x1,%rcx
So I am aware of what the repnz instruction does, but what is the purpose of not %rcx and %sub %rcx?