Link assembly with C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2005
Posts: 18
Reputation: Raza is an unknown quantity at this point 
Solved Threads: 0
Raza Raza is offline Offline
Newbie Poster

Link assembly with C++

 
0
  #1
Apr 25th, 2005
:o
hello e/o..
im Raza..i hav a project to make small operating system...
i have completed my boot and kernel work in assembly...with the help of emulator8086...there is output showing after booting from floppy but now i have to link that kernel with C++ program to show some output on screen.. so i can move ahead to do some more work in c++..
guide me..
Khuda Hafiz.

Raza.
hasnainr1@hotmail.com
hasnainr1@yahoo.co.uk
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 219
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 8
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: Link assembly with C++

 
0
  #2
Apr 25th, 2005
Do you need help with the actual coding or putting everything together and making the OS bootable?

Luckily I can help you on both! Here is a resource I want you to take a look at first: http://www.1cplusplusstreet.com/vb/s...=3570&lngWId=3

See if the directions that guy left in the readme file help you. I would normally post the information directly into the forums for the sake of accurate information archiving, but the intructions are too long and I don't want to plagerize.
A Hacker's Mind:
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes..." - J.D.Salinger
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 18
Reputation: Raza is an unknown quantity at this point 
Solved Threads: 0
Raza Raza is offline Offline
Newbie Poster

Re: Link assembly with C++

 
0
  #3
Apr 26th, 2005
i have complete booting phase..its booting..now i have another problem which is about KERNEL...i have a small and simple kernel but i have to send it into second sector of floppy?how i can do this...after this i have to link that kernel (asm file) with c++.if u can.. then let me know...i will send u links plus boot code and kernel code....
Raza.
Originally Posted by BountyX
Do you need help with the actual coding or putting everything together and making the OS bootable?

Luckily I can help you on both! Here is a resource I want you to take a look at first: http://www.1cplusplusstreet.com/vb/s...=3570&lngWId=3

See if the directions that guy left in the readme file help you. I would normally post the information directly into the forums for the sake of accurate information archiving, but the intructions are too long and I don't want to plagerize.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2
Reputation: Wokr is an unknown quantity at this point 
Solved Threads: 0
Wokr Wokr is offline Offline
Newbie Poster

Re: Link assembly with C++

 
0
  #4
Jun 13th, 2005
you can create .bin file in any assembler or even Borland C compiler.

There is an option in emu8086 to write .bin files to any sector of a virtual floppy drive (that is "FLOPPY_0" file in Emu8086 folder) - here's how to get there by the menus: Emulator -> Show Emulator , Virtual Drive -> Write .bin file to floppy.

You need to select sector 2 for kernel, and sector 1 if it's a boot code.

after you wrote both .boot and .bin file to "FLOPPY_0", you can use RawWrite to write this file to a real floppy drive.

This information is based on this tutorial.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC