/ hello-world / a / Assembler Bootsect.asm
Assembler Bootsect.asm
 1  [ORG	0x7C00]
 2  
 3  	mov	si,HelloWorld
 4  	call	print_string
 5  
 6  	jmp	$
 7  	
 8  	HelloWorld	db	"Hello world!",0xD,0xA,0
 9  	
10  print_string:
11  	mov	ah,0xE
12  .repeat:
13  	lodsb
14  	cmp	al,0
15  	je	.done
16  	int	0x10
17  	jmp	.repeat
18  .done:
19  	ret
20  	
21  	times	510-($-$$)	db	0
22  	dw	0xAA55