Guest User

Untitled

a guest
Aug 19th, 2019
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3. .DATA
  4. INPUT_NAME DB 10,13, "Enter Name: $"
  5. INPUT_GENDER DB 10, 13, "Enter Gender: $"
  6. INPUT_CIVIL DB 10, 13, "Enter Civil Status: $"
  7. INPUT_CHARACTER DB 10, 13, "Enter Character: $"
  8.  
  9. OUTPUT_NAME DB 10, 13, "Name: $"
  10. OUTPUT_GENDER DB 10, 13, "Gender: Male $"
  11. OUTPUT_CIVIL DB 10, 13, "Civil: Single $"
  12. OUTPUT_CHARACTER DB 10, 13, "Character: Neutral $"
  13.  
  14. USER_INPUT_NAME DB 100 DUP('$')
  15. USER_INPUT_GENDER DB 100 DUP('$')
  16. USER_INPUT_CIVIL DB 100 DUP('$')
  17. USER_INPUT_CHARACTER DB 100 DUP('$')
  18. .CODE
  19. MOV AX, @DATA
  20. MOV DS, AX
  21.  
  22. LEA DX, INPUT_NAME
  23. MOV AH, 09H
  24. INT 21H
  25.  
  26. LEA DX, USER_INPUT_NAME
  27. MOV AH, 0AH
  28. INT 21H
  29.  
  30. LEA DX, INPUT_GENDER
  31. MOV AH, 09H
  32. INT 21H
  33.  
  34. LEA DX, USER_INPUT_GENDER
  35. MOV AH, 0AH
  36. INT 21H
  37.  
  38. LEA DX, INPUT_CIVIL
  39. MOV AH, 09H
  40. INT 21H
  41.  
  42. LEA DX, USER_INPUT_CIVIL
  43. MOV AH, 0AH
  44. INT 21H
  45.  
  46. LEA DX, INPUT_CHARACTER
  47. MOV AH, 09H
  48. INT 21H
  49.  
  50. LEA DX, USER_INPUT_CHARACTER
  51. MOV AH, 0AH
  52. INT 21H
  53.  
  54. LEA DX, OUTPUT_NAME
  55. MOV AH, 09H
  56. INT 21H
  57.  
  58. LEA DX, USER_INPUT_NAME +2
  59. MOV AH, 09H
  60. INT 21H
  61.  
  62. LEA DX, OUTPUT_GENDER
  63. MOV AH, 09H
  64. INT 21H
  65.  
  66. LEA DX, OUTPUT_CIVIL
  67. MOV AH, 09H
  68. INT 21H
  69.  
  70. LEA DX, OUTPUT_CHARACTER
  71. MOV AH, 09H
  72. INT 21H
  73.  
  74. MOV AH, 4CH
  75. INT 21H
  76. END
RAW Paste Data