| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| C++ (Non Visual C++ Issues) Ask or answer C and C++ questions not related to Visual C++. This includes Console programming, Linux programming, or general ANSI C++. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HI,
I am developing OS. I was initially doing it in C and nasm. But now I wish to use Machine code. I know the way to write the machine code but do not know how to execute that code. Please let me know that if I wrote a machine language in a text file, how will I execute it. Thanks and regards, Aslan |
|
#2
|
|||
|
|||
|
Re: Machine Code Programming
writing Assembly in a text file will do absolutely nothing. You will have to compile the code first. Once you have compiled it you will need to get your compiled code into a bootsector of a harddisk partition. There are certain demands to a bootsector before a computer will execute it, but if it meets the demands, the computer will start up with the code in the bootsector.
I don't know the specifics, but you could try finding them with google or something. |
|
#3
|
|||
|
|||
|
Re: Machine Code Programming
well developing an os is very hard. but i suggest you make a bootsector on a floppy for developing it, since it wontbe that big in the beginning, once you got a little bit further and more confident you shuld continue on a hd partition
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|