SHARE
TWEET

ASEMBLY 4

rafid_shad Oct 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .model small
  2. .data
  3.  
  4. msg1 db  0dh,0ah,"Enter a character:  $"
  5. msg2 db  0dh,0ah,"Lower Case:  $"
  6.  
  7. x db ?
  8.  
  9. main proc
  10.     mov ax,@data
  11.     mov ds,ax
  12.    
  13.      mov ah,9
  14.     lea dx,msg1
  15.     int 21h
  16.    
  17.     mov ah,1
  18.     int 21h
  19.     mov x,al
  20.    
  21.     add x,32
  22.    
  23.     mov ah,9  
  24.     lea dx,msg2
  25.     int 21h
  26.    
  27.     mov ah,2
  28.     mov dl,x
  29.     int 21h
  30.    
  31.     main endp
  32. end main
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