;----------------------------------------------------------------------
; Simple program that prints :"Program1:My name is Shadab"
; 
; Shadab Tahvildary 2011
;
; Disclaimer: I am not responsible for any results of the use of the contents
;   of this file
;---------------------------------------------------------------------
begin:


	mov	ax, cs		; Get the current segment
	mov	ds, ax		; The data is in this segment
	cli			; disable interrupts while changing stack
	mov	ss, ax		; We'll use this segment for the stack too
	mov	sp, 0xfffe	; Start the stack at the top of the segment
	sti

	mov si, newline
	call putstr

	mov si, msg
	call putstr
	
	mov si,newline
	call putstr
	
	xor ah, ah
	int 0x16
	
	mov ah,4Ch	;Program should be terminated here
	
;---------------------------------------------
; Print a Null-Terminated String
;---------------------------------------------
putstr:
	push ax
putstr1:
	lodsb
	or al, al
	jz putstrd
	mov ah, 0x0e
	mov bx, 0x0007
	int 0x10
	jmp putstr1
putstrd:
	pop ax
	retn

;---------------------------------------------
; data for our program
;----------------------------------------------
msg db 'Program1:My name is Shadab',0
newline db 13,10,0
;------------------------------------------------
