BITS 16
jmp start ;jump to actual executing code
;------------------------------message set to display on the screen--------------
wellcome_msg db 'wellcome to Sagar cool new operating system',13,10,0,
reboot_msg db 'Your system is going to reboot now....',13,10,0,
reboot_key db 'Press any key to reboot',13,10,0,
resetmsg db 'Press any key to reset flopy',13,10,0,
reset_success db 'reset successful',13,10,0,
read_sectors db 'Press any key to read sector',13,10,0
read_success db 'Sector read successful....',13,10,0,
;------------------------------Main Bootloading process starts hear---------------
start:
mov ax, 07C0h ; Set data segment to where we're loaded
mov ds, ax ;
mov ax,9000h ;initlise the stack
mov ss,ax ;
mov sp,100h ;
mov al,41h
mov ah,0eh
int 10h
times 510-($-$$) db 0 ; Pad remainder of boot sector with 0s
dw 0xAA55 ; The standard PC boot signature