Intel ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS MANUAL VOLUME 1 REV 2.3 Manual page 1348

Hide thumbs Also See for ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS MANUAL VOLUME 1 REV 2.3:
Table of Contents

Advertisement

BTS—Bit Test and Set
Opcode
0F AB
0F AB
0F BA /5 ib
0F BA /5 ib
Description
Selects the bit in a bit string (specified with the first operand, called the bit base) at the
bit-position designated by the bit offset operand (second operand), stores the value of
the bit in the CF flag, and sets the selected bit in the bit string to 1. The bit base
operand can be a register or a memory location; the bit offset operand can be a register
or an immediate value. If the bit base operand specifies a register, the instruction takes
the modulo 16 or 32 (depending on the register size) of the bit offset operand, allowing
any bit position to be selected in a 16- or 32-bit register, respectively. If the bit base
operand specifies a memory location, it represents the address of the byte in memory
that contains the bit base (bit 0 of the specified byte) of the bit string. The offset
operand then selects a bit position within the range 2
and 0 to 31 for an immediate offset.
Some assemblers support immediate bit offsets larger than 31 by using the immediate
bit offset field in combination with the displacement field of the memory operand. See
"BT—Bit Test" on page 4:40
Operation
CF  Bit(BitBase, BitOffset)
Bit(BitBase, BitOffset)  1;
Flags Affected
The CF flag contains the value of the selected bit before it is set. The OF, SF, ZF, AF, and
PF flags are undefined.
Additional Itanium System Environment Exceptions
Itanium Reg Faults NaT Register Consumption Abort.
Itanium Mem FaultsVHPT Data Fault, Nested TLB Fault, Data TLB Fault, Alternate Data
4:46
Instruction
BTS r/m16,r16
BTS r/m32,r32
BTS r/m16,imm8
BTS r/m32,imm8
for more information on this addressing mechanism.
TLB Fault, Data Page Not Present Fault, Data NaT Page Consumption
Abort, Data Key Miss Fault, Data Key Permission Fault, Data Access
Rights Fault, Data Access Bit Fault, Data Dirty Bit Fault
Description
Store selected bit in CF flag and set
Store selected bit in CF flag and set
Store selected bit in CF flag and set
Store selected bit in CF flag and set
31
to 2
Volume 4: Base IA-32 Instruction Reference
31
 1 for a register offset

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itanium architecture 2.3

Table of Contents