hellomsdos.asm
nikaroxanne_supersweet16bit-m4lw4r3/msdos_intro/hellomsdos/hellomsdos.asm
.286
.MODEL TINY

;******************************************************************************
;	Sample COM Program that prints "Hello, MS-DOS" to stdout 
;
;	To be used in MS-DOS Emulator program 
;		(i.e. DOSBOX, FreeDOS in qemu, etc)
;	Must be compiled with a 16bit linker 
;		(i.e. ld86 or link16.exe with MASM32) 
;
;	This TSR is for educational purposes only.
;	Use at your own risk and practice at least some modicum of discretion
;
;******************************************************************************

.CODE
	org 100h

_hello	PROC	NEAR
	mov	ah,40h
	mov	bx,1 			;;stdout == 1
	mov	dx,offset a$msg
	int	21h
	
	
	mov	ax,4C00h
	int	21h

_hello	ENDP

a$msg	db	'Hello, MS-DOS!',0Dh,0Ah,24h
;;message to display to stdout	;masm-specific

;;CODE	ends			;masm-specific
;;	end	_hello		;masm-specific
