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édenteProchaine révisionLes deux révisions suivantes | ||
back2root:ibm-pc-ms-dos:asm:instr:clx-stx [2023/01/05 23:23] – [STC - Set Carry Flag] frater | back2root:ibm-pc-ms-dos:instr:clx-stx [2023/02/24 14:16] – supprimée - modification externe (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Instruction Clear / Set Flag ====== | ||
- | ===== Carry Flag ===== | ||
- | |||
- | ==== CLC - Clear Carry Flag ==== | ||
- | |||
- | Clears the Carry Flag. | ||
- | |||
- | **Usage:** | ||
- | |||
- | <code asm> | ||
- | CLC | ||
- | </ | ||
- | |||
- | **Modifies flags: | ||
- | |||
- | <WRAP round box> | ||
- | CF | ||
- | </ | ||
- | |||
- | ^ ^ | ||
- | ^ Operands | ||
- | | none | 2 | 2 | 2 | 2 | 1 | | ||
- | |||
- | |||
- | ==== STC - Set Carry Flag ==== | ||
- | |||
- | Sets the Carry Flag to 1. | ||
- | |||
- | **Usage:** | ||
- | |||
- | <code asm> | ||
- | STC | ||
- | </ | ||
- | |||
- | **Modifies flags:** | ||
- | |||
- | <WRAP round box> | ||
- | CF | ||
- | </ | ||
- | |||
- | ^ ^ | ||
- | ^ Operands | ||
- | | none | 2 | 2 | 2 | 2 | 1 | | ||
- | |||
- | |||
- | ===== Direction Flag ===== | ||
- | |||
- | ==== CLD - Clear Direction Flag ==== | ||
- | |||
- | Clears the Direction Flag causing string instructions to increment the SI and DI index registers. | ||
- | |||
- | **Usage:** | ||
- | |||
- | <code asm> | ||
- | CLD | ||
- | </ | ||
- | |||
- | **Modifies flags: | ||
- | <WRAP round box> | ||
- | DF | ||
- | </ | ||
- | |||
- | ^ ^ | ||
- | ^ Operands | ||
- | | none | 2 | 2 | 2 | 2 | 1 | | ||
- | |||
- | |||
- | ==== STD - Set Direction Flag ==== | ||
- | |||
- | Sets the Direction Flag to 1 causing string instructions to auto-decrement SI and DI instead of auto-increment. | ||
- | |||
- | **Usage:** | ||
- | |||
- | <code asm> | ||
- | STD | ||
- | </ | ||
- | |||
- | **Modifies flags:** | ||
- | <WRAP round box> | ||
- | DF | ||
- | </ | ||
- | |||
- | ^ ^ | ||
- | ^ Operands | ||
- | | none | 2 | 2 | 2 | 2 | 1 | | ||
- | |||
- | ===== Interruption Flag ===== | ||
- | |||
- | ==== CLI - Clear Interrupt Flag ==== | ||
- | |||
- | Disables the maskable hardware interrupts by clearing the Interrupt flag. | ||
- | |||
- | <WRAP round box> | ||
- | NMI's and software interrupts are not inhibited. | ||
- | </ | ||
- | |||
- | **Usage:** | ||
- | |||
- | <code asm> | ||
- | CLI | ||
- | </ | ||
- | |||
- | **Modifies flags: | ||
- | <WRAP round box> | ||
- | IF | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ^ ^ | ||
- | ^ Operands | ||
- | | none | 2 | 2 | 2 | 2 | 1 | | ||
- | |||
- | |||
- | ==== STI - Set Carry Flag ==== | ||
- | |||
- | Sets the Interrupt Flag to 1, enabling recognition of all CPU hardware interrupts. | ||
- | |||
- | **Usage:** | ||
- | |||
- | <code asm> | ||
- | STI | ||
- | </ | ||
- | |||
- | **Modifies flags:** | ||
- | <WRAP round box> | ||
- | IF | ||
- | </ | ||
- | |||
- | ^ ^ | ||
- | ^ Operands | ||
- | | none | 2 | 2 | 2 | 2 | 1 | | ||
- | |||
- | |||
- | {{page> |