GCC and 16-bit mode for x86 processor when writing boot code.

Ivan Pulleyn ivan.pulleyn@gmail.com
Mon Feb 26 23:51:00 GMT 2007


I have found that recent versions of gas allow use of the .code16
directive in assembler source targeting x86. I was able to write my
bootsector using this method.

Ivan...


On 2/26/07, Smith, Stephen (SWCOE) <Stephen.Smith@honeywell.com> wrote:
> I am writing some boot code for an x86 processor.  I know that binutils
> assumes 32-bit mode and doesn't have anything analogous to code16.
>
> What is the normal way of handling the 16bit mode until you've run
> enough code to switch to 32-bit flat mode?  Any document I can look at?
>
> BTW, I am using binutils 2.17.
>
>
>



More information about the Binutils mailing list