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]
Other format: [Raw text]

Re: as doesn't recognize "# line file"


Hi Magro,

>  echo \
>  '# 1 file.S
>  movw %al, %al' > file.s
>  gcc file.s
>  file.s: Assembler messages:
>  file.s:2: Error: `%al' not allowed with `movw'
> 
> Is this how it's supposed to behave?

Yes.  Try removing the '# 1 file.S' line and just assembling the movw
line.  You will still get the same error message.

Cheers
        Nick


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