ErrataIntroduction to 64 Bit Intel Assembly Language ProgrammingRay Seyfarth |
mov rax, [sample] ; move quad-word into rax ror rax, 23 ; shift to align bit 23 at 0 shr rax, 29 ; wipe out 29 bits NEW INSTRUCTION shl rax, 29 ; move bits back into alignment NEW INSTRUCTION or rax, [field] ; or in the new bits rol rax, 23 ; realign the bit fields mov [sample], rax ; save the field