bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about MSP430 assembler compiler


From: Eugene
Subject: Question about MSP430 assembler compiler
Date: Fri, 31 Oct 2014 10:47:38 +0200

   The program code in assembly language:
           ...
Loop:      xor.b      #0b01000001,&P1OUT
           call       #Wait
           jmp        Loop
           ...

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

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

0000c020 <.Loc.17.1>:
           jmp        Loop
    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:address@hidden
www.pronan.zp.ua


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]