Knowledge (XXG)

Bit Test

Source 📝

241: 30: 22: 46: 215: 235: 129:
POSITION Represent as numeric position From Right to Left Start at 0
126:
SRC Represent as bits array for CF Result Represent as hex for SRC Result
108:
POSITION Represent as numeric position From Right to Left Start at 0
85:(Bit Test and Set) operates the same, but also sets the bit in the register, while 61: 50: 195: 175: 155: 34: 57: 42: 135:Result CF = SRC XOR SRC, POW(2,POSITION) 8: 56:Example: copy the third least significant 147: 7: 93:(Bit Test and Complement) flips it. 89:(Bit Test and Reset) resets it, and 14: 105:SRC Represent as bits array 216:"BTC – Bit Test and Complement" 1: 258: 196:"BTR – Bit Test and Reset" 176:"BTS – Bit Test and Set" 65: 119:Logical Explanation BTC 25:instruction stands for 98:Logical Explanation BT 114:Result CF = SRC 29:and was added to the 23:x86 assembly language 132:CF Carry Flag 111:CF Carry Flag 31:x86 instruction set 123:BTC SRC, POSITION 102:BT SRC, POSITION 249: 242:X86 instructions 226: 225: 223: 222: 212: 206: 205: 203: 202: 192: 186: 185: 183: 182: 172: 166: 165: 163: 162: 152: 92: 88: 84: 78: 75: 72: 69: 60:from EAX to the 40: 20: 257: 256: 252: 251: 250: 248: 247: 246: 232: 231: 230: 229: 220: 218: 214: 213: 209: 200: 198: 194: 193: 189: 180: 178: 174: 173: 169: 160: 158: 156:"BT – Bit Test" 154: 153: 149: 144: 138: 136: 133: 130: 127: 124: 117: 115: 112: 109: 106: 103: 96: 90: 86: 82: 80: 79: 76: 73: 70: 67: 38: 18: 12: 11: 5: 255: 253: 245: 244: 234: 233: 228: 227: 207: 187: 167: 146: 145: 143: 140: 134: 131: 128: 125: 122: 113: 110: 107: 104: 101: 66: 13: 10: 9: 6: 4: 3: 2: 254: 243: 240: 239: 237: 217: 211: 208: 197: 191: 188: 177: 171: 168: 157: 151: 148: 141: 139: 121: 120: 100: 99: 94: 64: 63: 59: 54: 52: 48: 45:from a given 44: 36: 32: 28: 24: 21: 219:. Retrieved 210: 199:. Retrieved 190: 179:. Retrieved 170: 159:. Retrieved 150: 137: 118: 116: 97: 95: 81: 55: 26: 17: 15: 37:processor. 221:2012-11-04 201:2011-08-21 181:2011-08-21 161:2011-08-21 142:References 62:carry flag 51:carry flag 41:copies a 33:with the 236:Category 47:register 27:Bit Test 49:to the 35:80386 16:The 91:BTC 87:BTR 83:BTS 71:EAX 58:bit 43:bit 238:: 68:BT 53:. 39:BT 19:BT 224:. 204:. 184:. 164:. 77:2 74:,

Index

x86 assembly language
x86 instruction set
80386
bit
register
carry flag
bit
carry flag
"BT – Bit Test"
"BTS – Bit Test and Set"
"BTR – Bit Test and Reset"
"BTC – Bit Test and Complement"
Category
X86 instructions

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.