Interaction with system hardware with c++

P

prashant

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..
 
R

Robbie Hatley

prashant said:
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/
 
I

Ivan Vecerina

: 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.
 
A

amt.dwivedi

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,
 
H

Howard

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.

-Howard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top