lkml.org 
[lkml]   [1999]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: bootsect.S changes
Richard B. Johnson wrote:
> I think this is still a 'work in progress'. I hope that somebody adds
> a directive to gas that tells it to assemble 16-bit code so the source
> code doesn't have to be wrong to get it to make 16-bit code. The
> prefix 0x66 is a switch. It changes the default oprand size of the
> processor. If the processor is in 32-bit mode, 0x66 is used to make
> it do word, instead of longword operations. If the processor is
> in 16-bit mode, 0x66 prefix makes it do longword instead of the default
> word operations. Therefore, an assembler needs to 'know' when to
> not use 0x66. In other words it needs to know the current operation
> mode of the processor.
>
> Maybe a switch like ".i-32" (Intel 32-bit) ".i-16" (Intel 16-bit)
> needs to be added to GAS.
>

It's already there: .code16 and .code32

--

Brian Gerst

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.049 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site