A c-bootloader
    ref: http://dc0d32.blogspot.com/2010/06/real-mode-in-c-with-gcc-writing.html



git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@76 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   vbr.c
    setup stack address to 0x7c00 - 0x200 = 0x7a00, %ss = 0x7a00, %esp = 0

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@78 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
new file:   makefile
new file:   r.sh

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@79 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   vbr.c
    fixed %ss:%esp address.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@81 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
new file:   fat.c
    read fat floppy file. currnet file size support less than 512 bye.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@84 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   makefile
    add fat.c rule.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@85 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
new file:   linker_dos.ld
modified:   makefile
modified:   fat.c
    modify for dos com format.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@90 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    test int 0x13 ah=02 bios call in C code.

modified:   makefile
    add vbr-lba.bin rule.
    add fat.s rule.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@91 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    use c variable to pass

      u8 sector_no=3; // cl
      u8 track_no=0; // ch
      u8 head_no=0; // dh
      u8 disk_no=0; // dl
    int 0x13 bios call in inline assembly.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@92 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    add read_sector()

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@93 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    add fat header.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@94 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    add itoc().

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@95 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    remove useless code.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@96 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    add dump_u8(), print_num(), itoa() .

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@97 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   makefile
    add -fno-stack-protector for gcc CFLAGS

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@98 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    remove useless code.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@99 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    get these value:
      byte_per_sector
      root_entry_count

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@100 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    add DOS_COM macro for dos com or boot loader (512 byte)

modified:   makefile
    add bin rule for boot loader.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@101 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   makefile
    change makefile rule for generate .bin and .com

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@102 ac3c83ce-d231-11dd-a3c7-fda619b15ae3
modified:   fat.c
    fix jmp command and BS_OEMName label let boot sector compatible fat 12
    floppy disk.

git-svn-id: https://my-prog.googlecode.com/svn/trunk/c-bootloader@103 ac3c83ce-d231-11dd-a3c7-fda619b15ae3