would this work ????

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
fachamix
Posts: 21
Joined: Thu Oct 26, 2006 9:30 pm

would this work ????

Post 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!!!!!!!!!!!
User avatar
Combuster
Member
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:

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply