daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Nov 5th, 2018 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100
  3.  
  4. NEWLINE MACRO
  5.     PUSH AX
  6.     PUSH DX
  7.    
  8.     MOV AH, 2
  9.    
  10.     MOV DL, 0DH
  11.     INT 21H
  12.    
  13.     MOV DL, 0AH
  14.     INT 21H
  15.    
  16.     POP DX
  17.     POP AX
  18. ENDM NEWLINE
  19.  
  20. .DATA
  21.     DAY DW D0, D1, D2, D3, D4, D5, D6
  22.    
  23.     D0 DB "SUNDAY", "$"
  24.     D1 DB "MONDAY", "$"
  25.     D2 DB "TUESDAY", "$"
  26.     D3 DB "WEDNESDAY", "$"
  27.     D4 DB "THURSDAY", "$"
  28.     D5 DB "FRIDAY", "$"
  29.     D6 DB "SATURDAY", "$"
  30. .CODE
  31. MOV AX, @DATA
  32. MOV DS, AX
  33.  
  34. MOV AH, 2AH
  35. INT 21H
  36. MOV SI, OFFSET DAY
  37. MOV AH, 0
  38. ADD AX, AX
  39. ADD SI, AX
  40. MOV DX, [SI]
  41. MOV AH, 09H
  42. INT 21H
  43.  
  44. NEWLINE
  45.  
  46. MOV AH, 4CH
  47. INT 21H
  48.  
  49. END
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