bipo143

mem lab increect 23.02.17

Feb 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. .data
  3. x db "Correct $"
  4. y db "In Correct $"
  5. v db ?, '$'
  6.  
  7.  
  8.  
  9.  
  10. .code
  11.  
  12. mov ax, @data
  13. mov ds,ax
  14.  
  15. mov AH,1
  16. int 21H
  17. mov v,al
  18. int 21H
  19.  
  20.  
  21.  
  22.  
  23. cmp v,'y'
  24. JE CORRECT_
  25. cmp v,'Y'
  26. JE CORRECT_
  27.  
  28. JNE INCORRECT_
  29.  
  30.  
  31.  
  32.  
  33. CORRECT_:lea dx,x
  34. mov ah,9
  35. int 21h
  36. jmp finish
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. INCORRECT_: lea dx,y
  45. mov ah,9
  46. int 21h
  47. jmp finish
  48.  
  49.  
  50.  
  51.  
  52. finish:
Advertisement
Add Comment
Please, Sign In to add comment