I will give you the sample grub config file for your ideal system:
Code:
title Debian
root (hd0,0)
kernel /boot/<the linux kernel>
initrd /boot/<the initial ramdisk>
title Windows XP
rootnoverify (hd0,1)
chainloader +1
title Freedos
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
To boot to your Debian you will have to give grub the path to linux kernel image (in common, its name start with vmlinuz) and init ramdisk
After the path is the kernel options, it depends on your distro. If your debian is OK, you should keep the line for Debian unchanged
Try it.
I hope it will work. But I can't quarranty anythings because I have not used windows for one year and I have never configure grub to boot DOS.
You may access the grub info page