The popular method to clear rax is xor rax,rax
(0x4831C0) but that operation affects the flag bits.
How to clear rax without affecting the flags?
For example:
mov rax,0 (0x48C7C0xxxxxxxx takes 7 bytes)
pushf + xor rax,rax + popf (0x9C31C09D takes 4 bytes).
push 0 + pop rax (0x6A0058 takes 3 bytes)
Are there more or better methods?