cstrt086.asm is my modification of the startup file of Open Watcom C/C++ 1.3, making the startup address of the program cstart become 0000:0000, which makes it easier to relocate the program. In this way, the executable image file can be generated by EXEFLAT.EXE (only for 16-bit DOS real mode);
sys_demo.bat is a batch file that turns demo.exe into KERNEL.SYS that can be booted from the hard disk by FreeDOS boot loader;
Set the starting address in Open Watcom C/C++ 1.3 link switches --> 3. Advanced switches to _cstart_, compile MAIN_boot.c and cstrt086.asm, name the executable file demo.exe, double-click (execute) sys_demo.bat; you can get KERNEL.SYS;
Replace KERNEL.SYS with FreeDOS's KERNEL.SYS (you can rename FreeDOS's KERNEL.SYS) to realize the hard disk boot of FreeDOS boot loader;
Extract the files in rtCell_img.rar and Qemu.rar to the same folder (without any subdirectories), double-click (execute) rtCell.bat to see that KERNEL.SYS is loaded by FreeDOS boot loader and executed on the emulator;
*****************************************************
***This file is best executed with a virtual machine or emulator to avoid damaging hard disk data***
*****************************************************
If any friend has questions, new ideas, or finds errors, please contact: taowentao_twt@163.com
[ Last edited by taowentao on 2005-9-3 at 15:53 ]
sys_demo.bat is a batch file that turns demo.exe into KERNEL.SYS that can be booted from the hard disk by FreeDOS boot loader;
Set the starting address in Open Watcom C/C++ 1.3 link switches --> 3. Advanced switches to _cstart_, compile MAIN_boot.c and cstrt086.asm, name the executable file demo.exe, double-click (execute) sys_demo.bat; you can get KERNEL.SYS;
Replace KERNEL.SYS with FreeDOS's KERNEL.SYS (you can rename FreeDOS's KERNEL.SYS) to realize the hard disk boot of FreeDOS boot loader;
Extract the files in rtCell_img.rar and Qemu.rar to the same folder (without any subdirectories), double-click (execute) rtCell.bat to see that KERNEL.SYS is loaded by FreeDOS boot loader and executed on the emulator;
*****************************************************
***This file is best executed with a virtual machine or emulator to avoid damaging hard disk data***
*****************************************************
If any friend has questions, new ideas, or finds errors, please contact: taowentao_twt@163.com
[ Last edited by taowentao on 2005-9-3 at 15:53 ]

