1 / 4

Système d’exploitation : Assembleur

Système d’exploitation : Assembleur. Semaine 07 Instructions assembleur. Groupes d’instructions en assembleur. Mouvements de données MOV Arithmétiques ADD, ADC, INC, SUB, SBB, DEC, NEG, CMP Opérations “binaires” AND, OR, XOR, NOT, TEST, SHL, SHR, SAL, SAR, ROL, ROR, RCL, RCR

lukas
Download Presentation

Système d’exploitation : Assembleur

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Système d’exploitation : Assembleur Semaine 07 Instructions assembleur

  2. Groupes d’instructions en assembleur • Mouvements de données • MOV • Arithmétiques • ADD, ADC, INC, SUB, SBB, DEC, NEG, CMP • Opérations “binaires” • AND, OR, XOR, NOT, TEST, SHL, SHR, SAL,SAR, ROL, ROR, RCL, RCR • Traitement de chaînes • Commandes de transferts • LOOP, Jcond, JMP • Commandes du processeur

  3. MOV destination, source MOV registre, registre MOV mémoire, accumulateur ou acc., mem MOV registre, mémoire ou mem, reg. MOV registre, immédiat MOVmem, immédiat MOVregistre_segment, registre_16_bits ou reg_16., reg._seg. MOVregistre_segment, mémoire_16_bits Exemples MOV CX, DX MOV [5], AX MOV DX, [123] MOV AX, 9 MOV [DI], 15 MOV DS, AX MOV DS, [BX+5] Etude d’une instruction de mouvement de données : MOV

  4. L ’instruction MOV .model small .code ;1. mov registre,registre mov ax,bx mov cl,dh ;2. mov registre,memoire mov ah,ds:[5] mov cx,[bx+si] mov ah,[bx+3] ;3. mov memoire,registre mov ds:[5],dx mov [bx+3],cl mov [bx+di+2],al mov [bp],al ;4. mov registre,immediat mov ax,3 mov bx,0FDABh ;5. mov memoire,immediat mov byte ptr ds:[5],3 mov word ptr ds:[5],3 ;6. mov registre_segment,registre_16_bits mov ds,ax mov es,bx ;7. mov registre_segment,memoire_16_bits mov es,ds:[3] mov ds,ds:[0Ah] ;8. mov registre_16_bits,registre_segment mov cx,es mov ax,ss

More Related