This is the mail archive of the binutils@sources.redhat.com 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]

Re: about .code16


Hi Tang,

:     In fact,I just want to code something for PC bootstrap(x86) 
: under FreeBSD using gas,ld,objcopy;(First,make target to elf,then
: use "objcopy"onvert it to format binary);And only the codes with
: directive .code16 works;So i want to know what's the difference it
: makes.

The .code 16 directive is documented in the assembler documentation,
in the i386 specific section.  Have a look at the file
gas/doc/c-i386.texi for more information.

:     BTW,I don't find any .code16 in FreeBSD boot assembly codes;
: Is there something else could be done to make things right? 
: (FreeBSD3.2 on x86;/sys/boot2/*.s)

Sorry - that is out of my league.  Maybe they use a command line
switch to force 16 bit code by default ?

Cheers
	Nick


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