SHARE
TWEET

Untitled

a guest Jan 11th, 2020 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .model tiny
  2. .code
  3. org 100h
  4. start:
  5.  
  6.   mov cx,1
  7.      jmp wywolania
  8.       pobierz_znak:
  9.             mov ah,1
  10.             int 21h
  11.             ret
  12.        porownaj_znak:
  13.             CMP al,"w"
  14.             JE poprawna
  15.             ret
  16.            
  17.        dalsze_instrukcje:
  18.             CMP cx,10
  19.             JE koniec
  20.            
  21.             INC CX    
  22.             jmp wywolania
  23.             ret
  24.            
  25.            
  26.         poprawna:
  27.         mov ah,9
  28.         mov dx, offset txt
  29.         int 21h
  30.         jmp koniec
  31.    
  32.        wywolania:
  33.        call pobierz_znak
  34.        call porownaj_znak
  35.        call dalsze_instrukcje
  36.    
  37. koniec:
  38.     mov ax,4c00h
  39.     int 21h
  40.  
  41.     txt db "Koniec siema elo$"
  42.  
  43.  
  44. end start
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top