shr eax, 0x1 ; Kick the right-most bit out ... mov ebx, 0x0 ; Initialise register to a 0 jnc now_rotate ; If eax bit was a 0 jump to now_rotate mov ebx, 0x1 ; Reset register to a 1 now_rotate: shr eax, 0x1 ; Kick the right-most bit out ... mov ebx, 0x0 ; Initialise register to a 0 jnc now_rotate ; If eax bit was a 0 jump to now_rotate inc ebx ; Increment register to a 1 now_rotate: xor ebx, ebx ; Initialise register to a 0 shr eax, 0x1 ; Kick the right-most bit out ... jnc now_rotate ; If eax bit was a 0 jump to now_rotate inc ebx ; Increment register to a 1 now_rotate: