OS written in Turbo Pascal

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
FreakBoy86

OS written in Turbo Pascal

Post 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.
ASHLEY4

RE:OS written in Turbo Pascal

Post 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.      
Post Reply