Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
back2root:ibm-pc-ms-dos:asm:instr:lods [2023/01/14 21:08] – créée frater | back2root:ibm-pc-ms-dos:asm:instr:lods [2023/01/14 21:14] – [LODSx] frater | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== LODS - Load String (Byte, Word or Double) | + | ====== LODS - LODSB - LODSW - LODSD ====== |
- | ===== INSTR. | + | ===== LODS - Load String (Byte, Word or Double) |
- | Descr. | + | Transfers string element addressed by DS:SI (even if an operand is supplied) to the accumulator. SI is incremented based on the size of the operand or based on the instruction used. If the Direction Flag is set SI is decremented, |
+ | |||
+ | Can be used with REP prefixes. | ||
**Usage:** | **Usage:** | ||
<code asm> | <code asm> | ||
- | INSTR Opp, | + | LODS src |
+ | LODSB | ||
+ | LODSW | ||
+ | LODSD ; 386+ only | ||
</ | </ | ||
- | **Modifies | + | **Modifies |
<WRAP round box> | <WRAP round box> | ||
- | CF PF AF ZF SF TF IF DF OF <color # | + | AL or AX or <color #00a2e8>EAX</ |
<color # | <color # | ||
Ligne 20: | Ligne 24: | ||
^ ^ Clocks | ^ ^ Clocks | ||
^ Operands | ^ Operands | ||
- | | none | | + | | src |
- | | none (PM) | - | + | | src |
- | | reg, | + | |
- | | mem, | + | |
- | | reg, | + | |
- | | reg, | + | |
- | | mem, | + | |
- | | accum, | + | |
{{page>: | {{page>: | ||