CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    1

    Exclamation Machine Code Programming

    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. #2
    Join Date
    Feb 2005
    Posts
    58

    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. #3
    Join Date
    Aug 2005
    Location
    Netherlands, The
    Posts
    2,184

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured