CHAPTER 19. MANIPULATING SPECIFIC BIT(S) CHAPTER 19. MANIPULATING SPECIFIC BIT(S)
19.6.6 Clear specific bit (specified at runtime).
Listing 19.55: C/C++
value=value&(~(1<<n));
Listing 19.56: x86
; CL=n
MOV REG, 1
SHL REG, CL
NOT REG
AND input_value, REG