Assertion pseudo instruction ASSERT in ARM startup code

Publisher:创意狂想Latest update time:2016-12-23 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

ASSERT :DEF:ENDIAN_CHANGE

ASSERT :DEF:ENDIAN_CHANGE 
[ ENDIAN_CHANGE 
ASSERT :DEF:ENTRY_BUS_WIDTH 
[ ENTRY_BUS_WIDTH=32 
b ChangeBigEndian ;DCD 0xea000007 


[ ENTRY_BUS_WIDTH=16 
andeq r14,r7,r0,lsl #20 ;DCD 0x0007ea00 


[ ENTRY_BUS_WIDTH=8 
streq r0,[r0,-r10,ror #1] ;DCD 0x070000ea 


b ResetHandler 


1. ASSERT :DEF:ENDIAN_CHANGE 

ASSERT is an assertion pseudo-instruction, and its syntax is: ASSERT + logical expression 

def is a logical pseudo-operator, and its format is: :DEF:label, its function is to determine whether label has been defined. //*********************Additional information: if label is not defined, the compiler will report an error when compiling.

2. The four blue instructions can and can only execute one sentence, and if the first three sentences are executed, the last sentence of the post-processing program is also 

b ResetHandler 

3. " [ " is equivalent to if 

" | " is equivalent to else 

" ] " is equivalent to endif


    Keywords:ARM Reference address:Assertion pseudo instruction ASSERT in ARM startup code

    Previous article:STM32 DMA application (I) Data transfer between SRAM and flash
    Next article:Some questions about the routine of stm32 USB to serial port virtual_Com_Port

    Latest Microcontroller Articles
    Change More Related Popular Components

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    About Us Customer Service Contact Information Datasheet Sitemap LatestNews


    Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

    Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号