By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.

Interaction with system hardware with c++

P: n/a
Guys does any body know how to develop an micro operating system using
c++. or tell about how to make an executable that can interect with
system hardware and does not require a ms dos to run.And tell me how t
o write a assembler code in c++........

please reply..

Jul 11 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"prashant" <me*************@gmail.comwrote in message
news:11**********************@35g2000cwc.googlegro ups.com...
: Guys does any body know how to develop an micro operating system using
: c++.
Sure, if it can be done in C, in can be done in C++.

: or tell about how to make an executable that can interect with
: system hardware and does not require a ms dos to run.
Besides being a platform-specific question, it is also too vague.
In MSDOS and Win9x, by the way, any application can take over
the system and talk to the hardware directly.

: And tell me how t
: o write a assembler code in c++........

Using an "asm" statement, and following the specific
syntax for the platform/compiler that you are using.

: please reply..
Advice:
- be specific in your questions
- post to a forum dedicated to x86 assembly, kernel
development, or whatever you are looking into.
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Jul 11 '06 #2

P: n/a
"prashant" <me*************@gmail.comwrote:
Guys does any body know how to develop an micro operating system
using c++.
Some people do write operating systems in C++, yes.

If you mean, will I write you one for free, the answer is no.
or tell about how to make an executable that can interect with
system hardware and does not require a ms dos to run.
Depends on which "system hardware" you're talking about. Each piece
of hardware generally requires a different driver for each operating
system you want it to work with. For more information, consult the
technical manuals for the hardware and operating systems you want to
work with.
And tell me how to write a assembler code in c++.
If you mean, "how do I embed assembly snippets in C++", some compilers
use the standard "asm" keyword, while others use a non-standard "_asm"
or "__asm" keyword.

Here's a typical instance of some embedded assembly:

__asm
{
mov ah,3Dh
mov al,0
lea dx,file
int 21h
}

Different compilers do that differently, though. For more information,
consult your compiler's documentation.

--
Cheers,
Robbie Hatley
East Tustin, CA, USA
lone wolf intj at pac bell dot net
(put "[usenet]" in subject to bypass spam filter)
http://home.pacbell.net/earnur/
Jul 11 '06 #3

P: n/a
I guess u r not very clear with your objective .
nway Here is the book
Programming Embedded system in C and C++
By Michael Barr
and u can have alook on Google Book Search for preview.
and I feel this will solve many of ur unsaid problems.

cheers,
prashant wrote:
Guys does any body know how to develop an micro operating system using
c++. or tell about how to make an executable that can interect with
system hardware and does not require a ms dos to run.And tell me how t
o write a assembler code in c++........

please reply..
Jul 11 '06 #4

P: n/a

<am*********@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
>I guess u r not very clear with your objective .
nway Here is the book
Programming Embedded system in C and C++
By Michael Barr
and u can have alook on Google Book Search for preview.
and I feel this will solve many of ur unsaid problems.

cheers,
Please don't top-post. Your answers should go after, or interspersed with,
what you're replying to.

Also, please refrain from using abbreviations for English words, such as
"u", "r", and "nway". It's hard enough for non-native-English speakers to
read English without having to interpret such instant-message-speak.
prashant wrote:
>Guys does any body know how to develop an micro operating system using
c++. or tell about how to make an executable that can interect with
system hardware and does not require a ms dos to run.And tell me how t
o write a assembler code in c++........
-Howard
Jul 11 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.