Page 1 of 1

OS written in Turbo Pascal

Posted: Thu Mar 04, 2004 12:00 am
by FreakBoy86
Can anyone tell me how to write an OS in Turbo Pascal. I have written a bootstrap in Assembler wich loads a file from floppy. But it doesn't work with the kernel-exe written in tp. The pc hangs up while booting. The kernel contains a procedure wich handles a software interrupt.

Thanks for help.

RE:OS written in Turbo Pascal

Posted: Thu Mar 04, 2004 12:00 am
by ASHLEY4
First i would go here :
  
http://alexfru.chat.ru/epm.html

And get bootprog.zip. It loads a exe file from a floppy,now when you make your OS in turbo pascal ,you need to know if the command your useing, uses dos int,s, some commands do ,others do not.
Eg: if you write a pascal prog for dos you can use "write" "writeln" " read" "readln", But if you did it in your OS it would crash N burn.

But if you put " use crt;" you can now use the above commands.in your OS ?.
The way i did it (along time a go), was to get the bprtl and replace the dos calls with bios  and then assemble them to obj .
Then you can write your OS as you want.
let me know it you have trouble getting the bprtl ,and i will see what i can do to help.

ASHLEY4.