
[BITS 16]
[ORG 0] ;The bootloader will choose that its loaded into the 2rd segment of memorty (0x1000) 


jmp main

BootstrapLoaded: db "The bootstrap is now in control", 0

main:
	mov si, BootstrapLoaded ;Load into the index register the offsett of the string
	call PrintMsg

	jmp $



PrintMsg:	;The datasegment register for the bootstrap already loaded in the bootsecor
	mov ah, 0x0e
	mov bh, 0x00
	mov bl, 0x07
.NextChar:
	mov al, [ds:si] ;DS (segment selecter not necessar, NASM will assume current data segment)
	inc si ;offsett increasing for string, next character refrenced
	or al, al ; if al=0 (the last character=null) then 0 flag is set
	jz .Break ;jump on zero to break loop
	int 0x10  ;run bios display interupt/function
	jmp .NextChar   
.Break:
	ret
