Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
back2root:ibm-pc-ms-dos:instr:bsf [2023/02/24 14:16] – supprimée - modification externe (Unknown date) 127.0.0.1 | back2root:ibm-pc-ms-dos:instr:bsf [2023/03/03 23:53] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== BSF - (386+ only) ====== | ||
+ | |||
+ | ===== BSF - Bit Scan Forward (386+ only) ===== | ||
+ | |||
+ | Scans source operand for first bit set. Sets ZF if a bit is found set and loads the destination with an index to first set bit. Clears ZF is no bits are found set. BSF scans forward across bit pattern (0-n) while BSR scans in reverse (n-0). | ||
+ | |||
+ | **Usage:** | ||
+ | <code asm> | ||
+ | BSF dest, | ||
+ | </ | ||
+ | |||
+ | **Modifies flags: | ||
+ | |||
+ | <WRAP round box> | ||
+ | ZF | ||
+ | |||
+ | </ | ||
+ | |||
+ | ^ ^ Clocks | ||
+ | ^ Operands | ||
+ | | reg, | ||
+ | | reg, | ||
+ | | reg32, | ||
+ | | reg32, | ||
+ | |||
+ | {{page> | ||