-
April 14th, 2006, 12:50 AM
#1
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
-
April 14th, 2006, 04:15 AM
#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.
-
April 14th, 2006, 05:25 AM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|