Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:instr:rep

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
back2root:ibm-pc-ms-dos:asm:instr:rep [2023/01/20 21:08] – créée fraterback2root:ibm-pc-ms-dos:instr:rep [2023/02/24 14:16] – supprimée - modification externe (Unknown date) 127.0.0.1
Ligne 1: Ligne 1:
-====== REP ====== 
- 
-===== REP - Repeat String Operation ===== 
- 
-Repeats execution of string instructions while CX != 0. After each string operation, CX is decremented and the Zero Flag is tested.  
- 
-**Usage:** 
-<code asm> 
- INSTR Opp,Opp ; 
-</code> 
- 
-The combination of a repeat prefix and a segment override on CPU's before the 386 may result in errors if an interrupt occurs before CX=0. The following code shows code that is susceptible to this and how to avoid it: 
- 
-<code asm> 
-again: rep movs byte ptr ES:[DI],ES:[SI] ; vulnerable instr. 
- jcxz next ; continue if REP successful 
- loop again ; interrupt goofed count 
-next: 
-</code> 
- 
-**Modifies flags:**  
- 
-<WRAP round box> 
-CF PF AF ZF SF TF IF DF OF <color #ff7f27>IOPL</color> <color #ff7f27>NT</color> <color #00a2e8>RF</color> <color #00a2e8>VM</color> 
- 
-<color #ff7f27>286+ only</color>  <color #00a2e8>386+ only</color> 
-</WRAP> 
- 
-^              ^  Clocks                       |||^  Size                ^ 
-^  Operands    ^  808x    ^  286  ^  386  ^  486  ^  Bytes  ^              ^ 
-| none          10/14    3    |  4    |  4    |  1      |              | 
-| none (PM)    |  -        -    |  4    |  3    |  1      |              | 
-| reg,reg      |  3        2    |  2    |  1    |  2      |              | 
-| mem,reg      |  16+EA    7    |  7    |  3    |  2-4    | (W88=24+EA)  | 
-| reg,mem      |  9+EA    |  7    |  6    |  1    |  2-4    | (W88=13+EA)  | 
-| reg,immed    |  4        3    |  2    |  1    |  3-4    |              | 
-| mem,immed    |  17+EA    7    |  7    |  3    |  3-6    | (W88=23+EA)  | 
-| accum,immed  |  4        3    |  2    |  1    |  2-3    |              | 
- 
-{{page>:back2root:ibm-pc-ms-dos:asm:instr:see-footer}} 
  
back2root/ibm-pc-ms-dos/instr/rep.txt · Dernière modification : 2023/02/24 14:16 de frater