Page 1 of 1

would this work ????

Posted: Wed Dec 13, 2006 12:04 pm
by fachamix
well here i am ..... again.

as you guys told me i keep reading (about doing an os in real mode).


every single tutorial or document realted to making a real mode operating system, used pure assembler, no C at all.


So i could find a way to produce a flat binary using Turbo C, by streaping
( taking out) the head of the EXE file generated.... and works.


but i still have a doubt......

1) after i do the bootcode for my OS , how do I jumpo to it (jump to the kernel) ????? (i already did a Hello World message at boot time)

2) would be any problem using the inline assembler that TurboC gives me ????

thanks a lot folks!!!!!!!!!!!

Posted: Wed Dec 13, 2006 12:17 pm
by Combuster
1:
Where to jump depends on the info in the EXE format. It stores relative CS and IP. Unless Turbo C put the entry point at some fixed location, you are in trouble. Your best bet would be to create an MZ EXE loader.

2:
Did you mean Inline Assembly or the Assembler companion program?
As for TC inline assembly, didnt have problems with it when programming in DOS, so why would flat mode be much different. TASM itself is just another assembler. In either case, read docs.