title: No stack segment warning in MASM
body: <p>I am a begginer in assembly.
  Im trying to print a letter on screen with MASM. I defined the stack segment but when i trying to link the program, got this warning:</p>
  
  <p>Link: Warning L4021: no stack segment</p>
  
  <p>However the program works fine!
  How can i fix this? Please explain in simple words. Thank You.</p>
  
  <p>printa.asm:</p>
  
  <pre><code>stk segment
      DW 32 dup(?)
  stk ends
  cds     segment
      assume cs:cds,ss:stk
      main proc far
          mov ah,02
          mov dl, 'A'
          int 21h
  
          mov ah,01
          int 21h
  
          mov ah,4ch
          int 21h
      main endp
  cds ends
  END main
  </code></pre>
  
  <p>printa.lst:</p>
  
  <pre><code>Microsoft (R) Macro Assembler Version 6.00              11/06/15 09:38:16
  printa.asm                           Page 1 - 1
  
  
   0000               stk segment
   0000  0020 [               DW 32 dup(?)
          0000
         ]
   0040               stk ends
   0000               cds     segment
                      assume cs:cds,ss:stk
   0000                   main proc far
   0000  B4 02                    mov ah,02
   0002  B2 41                    mov dl, 'A'
   0004  CD 21                    int 21h
  
   0006  B4 01                    mov ah,01
   0008  CD 21                    int 21h
  
   000A  B4 4C                    mov ah,4ch
   000C  CD 21                    int 21h
   000E                   main endp
   000E               cds ends
                  END main
  Microsoft (R) Macro Assembler Version 6.00              11/06/15 09:38:16
  printa.asm                           Symbols 2 - 1
  
  
  
  
  Segments and Groups:
  
                  N a m e                 Size     Length   Align   Combine Class
  
  cds  . . . . . . . . . . . . . .    16 Bit   000E     Para    Private 
  stk  . . . . . . . . . . . . . .    16 Bit   0040     Para    Private 
  
  
  Procedures,  parameters and locals:
  
                  N a m e                 Type     Value    Attr
  
  main . . . . . . . . . . . . . .    P Far    0000     cds   Length= 000E Private
  
         0 Warnings
         0 Errors
  </code></pre>