Its been ages since I did assembler, I had a simple notepad with save on same disk (no files, just a random permemenant spot of data), a bitmap file loader&display, serial debug terminal, robotics control (via parallel port), ect ect
Before i ramble on about INT13 you have to understand what disk(0) means and
what wiping out your bootsector does, means, and how to backup/restore it without loosing ALL the files on your hdd!!!!!
i reccomend testing this on a computer with the hdd disconnected COMPLETELY. (so if it attempts to wipe the hdd, it will only give you an error?) Be warned.
That was WAY back a while. There was a fire that took my hard drive AND my ****ing backup! ughh! It wasnt terribly difficult, first you need to practise copying from hard drive to memory (use BIOS interupt 13h to copy your instructions from disk to memory) then move instruction execution pointer to the start of that address, DONT FORGET REGISTERS! lol
once your there you can add program objects and a command interpreter (hint, model it on a "notepad" first, then add the actual interaction) but as always remember to save and restore registers (and instruction execution pointer?) after every program /begenning of interupt, and yes you CAN write your own interupts, but i have no clue how (DOS has a few)
here is an unfinished (and untested) example i just pulled from (g)oogle real quick, it'll work because i recognise it's code, but you'll probably have to know basic assembler and registers ect...
mov ah, 2 ; function 2, read sectors
mov al, 1 ; read 1 sector
mov ch, 0 ; track 0
mov cl, 0 ; sector 0
mov dh, 0 ; head 0
mov dl, 0 ; drive 0 (A

(0=A, 80h = driv 0, 81h = drive 1)
mov bx, offset buffer ; where to put the data (ES:BX)
int 13h
then you just need to execute the data in the buffer!
NOTE ABOUT BOOT DISKS:
im not sure about hdds, but with floppys and probably hdds too, you need to make sure a specific two bytes on the disk are set to a specific value in order for the BIOS to even ATTEMPT to copy&load the bootsector. very important.
hope that helps! and good luck with your projects!
NOTE: example is taken from
http://www.programmersheaven.com/mb/...3h-service-02/
i make no claim to rights of blah blah blah .....
want me to take down?, PM me