jimmyhilldrix
January 12th, 2008, 11:00 PM
I recently inherited an old x86 PC and thought it would be fun to try writing a small OS for it. I've written operating systems for the HC11 and PIC microcontrollers but I've never tried x86.
I would like to use the as assembler to do this because I have a book that teaches that syntax. When I compile boot sectors, however, a lot of extra data is inserted into the executable file (the first four characters are ".ELF") I can only assume that the linker is trying to create a Linux executable which requires all of the extra instructions.
Is there a directive that I can pass the as assembler that will force it to give me a straight assembly and not anything extra?
I would like to use the as assembler to do this because I have a book that teaches that syntax. When I compile boot sectors, however, a lot of extra data is inserted into the executable file (the first four characters are ".ELF") I can only assume that the linker is trying to create a Linux executable which requires all of the extra instructions.
Is there a directive that I can pass the as assembler that will force it to give me a straight assembly and not anything extra?