Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org 100h
  2.  
  3. .data
  4.  
  5.  marimeIntrodus db dub(0)
  6. .code
  7.         mov ax,@data
  8.         mov ds,ax
  9.  
  10.         mov bx,80h  ;(setam cursorul pe casuta 80h, care contine lungimea sirului,vezi carte p120)  
  11.         mov al,es:[bx]; (copiem in al lungimea sirului)  
  12.         lea di, marimeIntrodus
  13.         stosb         ;copiem lungimea sirului in marimeIntrodus
  14.        
  15.        mov bx,82h ;(setam cursorul la primul element din coada liniei de comanda, sarind peste spatiul stocat de la 81h)
  16.        
  17.        mov cx,0  ;(contor 0)
  18.        
  19. repeta:
  20.        mov al,es:[bx]
  21.        add al,20h    ;  convertim caracter mare in mic
  22.        mov ah,0eh  
  23.        int 10h     ;afisam
  24.        inc bx
  25.        inc cx    
  26.        lea si,marimeIntrodus
  27.        lodsb
  28.        cmp cl,al    ;comparam daca am ajuns la capat
  29.        jnz repeta    
  30.        
  31.        iesire:
  32.        mov ax,4c00h
  33.        int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement