Re: Question about MSP430 assembler compiler

2014-11-01 Thread Andreas Schwab
Eugene  writes:

> Loop:  xor.b  #0b0101,&P1OUT

gas/config/tc-msp430.h defines NUMBERS_WITH_SUFFIX, so this is the
number 0 with trailing garbage (which isn't properly diagnosed).  Use
0101B instead.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


Question about MSP430 assembler compiler

2014-10-31 Thread Eugene
   The program code in assembly language:
   ...
Loop:  xor.b  #0b0101,&P1OUT
   call   #Wait
   jmpLoop
   ...

   After compilation, see:
Loop:  xor.b  #0b0101,&P1OUT
c018:   c2 e3 21 00 xor.b   #0, &0x0021 ;r3 As==00

c01c <.Loc.16.1>:
   call   #Wait
c01c:   b0 12 22 c0 call#49186  ;#0xc022

c020 <.Loc.17.1>:
   jmpLoop
c020:   fb 3f   jmp $-8 ;abs 0xc018

Question: why on the label 'Loop' occurred loading #0 instead of #0x41?

Thanks.

--
Best regards,
Eugene Chaban / Hardware Engineer
JV Pronan, Ukraine
Tel: +380 61 2246871
Fax: +380 61 2246871
mailto:eug...@pronan.zp.ua
www.pronan.zp.ua


---
Это сообщение свободно от вирусов и вредоносного ПО благодаря защите от вирусов 
avast!
http://www.avast.com


___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils