encyclopegia.org

Bit Test

The BT x86 assembly language instruction stands for Bit Test and was added to the x86 instruction set with the 80386 processor. BT copies a bit from a given register to the carry flag. Example: copy the third least significant bit from EAX to the carry flag BT EAX, 2 BTS (Bit Test and Set) operates the same, but also sets the bit in the register, while BTR (Bit Test and Reset) resets it, and BTC (Bit Test and Complement) flips it. Logical Explanation BT BT SRC, POSITION SRC Represent as bits array POSITION Represent as numeric position From Right to Left Start at 0 CF Carry Flag Result CF = SRC[POSITION] Logical Explanation BTC BTC SRC, POSITION SRC Represent as bits array for CF Result Represent as hex for SRC Result POSITION Represent as numeric position From Right to Left Start at 0 CF Carry Flag Result CF = SRC[POSITION] XOR SRC, POW(2,POSITION)

The BT x86 assembly language instruction stands for Bit Test and was added to the x86 instruction set with the 80386 processor. BT copies a bit from a given register to the carry flag. Example: copy the third least significant bit from EAX to the carry flag BT EAX, 2 BTS (Bit Test and Set) operates the same, but also sets the bit in the register, while BTR (Bit Test and Reset) resets it, and BTC (Bit Test and Complement) flips it. Logical Explanation BT BT SRC, POSITION SRC Represent as bits array POSITION Represent as numeric position From Right to Left Start at 0 CF Carry Flag Result CF = SRC[POSITION] Logical Explanation BTC BTC SRC, POSITION SRC Represent as bits array for CF Result Represent as hex for SRC Result POSITION Represent as numeric position From Right to Left Start at 0 CF Carry Flag Result CF = SRC[POSITION] XOR SRC, POW(2,POSITION)

References

  1. BT – Bit Test · retrieved 2011-08-20 · rev 1335557802
    Cite this reference

    MLA "BT – Bit Test." 2011-08-20. https://faydoc.tripod.com/cpu/bt.htm. Accessed 24 November 2026.

    Chicago "BT – Bit Test." 2011-08-20. https://faydoc.tripod.com/cpu/bt.htm.

    APA encyclopegia.org. (2011). BT – Bit Test. Retrieved November 24, 2026, from https://faydoc.tripod.com/cpu/bt.htm

  2. BTS – Bit Test and Set · retrieved 2011-08-20 · rev 1335557802
    Cite this reference

    MLA "BTS – Bit Test and Set." 2011-08-20. https://faydoc.tripod.com/cpu/bts.htm. Accessed 24 November 2026.

    Chicago "BTS – Bit Test and Set." 2011-08-20. https://faydoc.tripod.com/cpu/bts.htm.

    APA encyclopegia.org. (2011). BTS – Bit Test and Set. Retrieved November 24, 2026, from https://faydoc.tripod.com/cpu/bts.htm

  3. BTR – Bit Test and Reset · retrieved 2011-08-20 · rev 1335557802
    Cite this reference

    MLA "BTR – Bit Test and Reset." 2011-08-20. https://faydoc.tripod.com/cpu/btr.htm. Accessed 24 November 2026.

    Chicago "BTR – Bit Test and Reset." 2011-08-20. https://faydoc.tripod.com/cpu/btr.htm.

    APA encyclopegia.org. (2011). BTR – Bit Test and Reset. Retrieved November 24, 2026, from https://faydoc.tripod.com/cpu/btr.htm

  4. BTC – Bit Test and Complement · retrieved 2012-11-03 · rev 1335557802
    Cite this reference

    MLA "BTC – Bit Test and Complement." 2012-11-03. https://css.csail.mit.edu/6.858/2010/readings/i386/BTC.htm. Accessed 24 November 2026.

    Chicago "BTC – Bit Test and Complement." 2012-11-03. https://css.csail.mit.edu/6.858/2010/readings/i386/BTC.htm.

    APA encyclopegia.org. (2012). BTC – Bit Test and Complement. Retrieved November 24, 2026, from https://css.csail.mit.edu/6.858/2010/readings/i386/BTC.htm

Cite this article

MLA

"Bit Test." encyclopegia.org, 2026, https://encyclopegia.org/wiki/bit-test. Accessed 24 November 2026.

Chicago

"Bit Test." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/bit-test.

APA

encyclopegia.org. (2026). Bit Test. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/bit-test

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Izod impact strength test

stub · references available

Zone bit recording

stub · references available

16-bit computing

stub · references available

Allen's test

stub · references available

Öko-Test

stub · references available

ABR-Test

stub · references available

curb bit

stub · references available

Wartegg test

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1335557802 · 0.5 · snapshot enwiki-001335557802

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.