This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]