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!!!!!!!!!!!
would this work ????
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
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.
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.