Microsoft (R) Macro Assembler Version 6.14.8444		    06/21/08 12:48:05
helloc.asm						     Page 1 - 1


 0000				com_seg segment byte public            ; define the ONLY segment

				        assume cs:com_seg, ds:com_seg  ; both code & data in same segment.
				        org 100h                       ; go to start adress in memory.

 0100				start:
 0100  B4 40			        mov ah, 40h                    ; the DOS function number.
helloc.asm(7) : warning A4012: line number information for segment without class 'CODE' : com_seg
 0102  BB 0001			        mov bx, 1                      ; the screen handle.
 0105  B9 000B			        mov cx, 11                     ; the length of the text to display.
 0108  BA 0116 R		        mov dx, offset Greeting        ; the address of the text.
 010B  CD 21			        int 21h                        ; get DOS to execute the function.
 010D  B4 00			        mov ah,0
 010F  CD 16			        int 16h

 0111  B8 004C			        mov ax, 4Ch                    ; the TERMINATE process function.
 0114  CD 21			        int 21h                        ; call DOS again to EXIT.

 0116 48 65 6C 6C 6F 20		Greeting db "Hello World",13,10        ; specify the text as byte data.
       57 6F 72 6C 64 0D
       0A

 0123				com_seg ends                           ; define the end of the segment.

				        end start
Microsoft (R) Macro Assembler Version 6.14.8444		    06/21/08 12:48:05
helloc.asm						     Symbols 2 - 1




Segments and Groups:

                N a m e                 Size     Length   Align   Combine Class

com_seg  . . . . . . . . . . . .	16 Bit	 0123	  Byte	  Public  


Symbols:

                N a m e                 Type     Value    Attr

Greeting . . . . . . . . . . . .	Byte	 0116	  com_seg	
start  . . . . . . . . . . . . .	L Near	 0100	  com_seg	

	   1 Warnings
	   0 Errors
