| 전자부품 데이터시트 검색엔진 |
|
AN3350 데이터시트(PDF) 69 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 데이터시트(HTML) 69 Page - STMicroelectronics |
|
69 / 185 page ![]() AN3350 Working with the assembler Doc ID 018512 Rev 2 69/185 next\@: #endm The mechanism implementing this behavior replaces these labels with new ones that use an integer counter beginning with zero and incremented on each call. Default values for macros Both types of macros accept default values for their parameters. Default values can be set to the last parameters by using the equal character (=). The value assigned is the following sequence of tokens ending at the first comma met. For the last parameter, default value ends at the closing right parenthesis (in single-line macros) or at the end of the line (in multi- line macros), as shown in Example 7. Example 7 Appropriate macro ending #macro ADD R, A = 2, B = 3 movei R, A + B #endm ADD a, 34 ADD a,78,98 ADD a The macro in Example 7 expands to the code in Example 8. Example 8 Macro expansion movei a, 34 + 3 movei a, 78 + 98 movei a, 2 + 3 Note: The actual number of arguments passed in a call can be obtained using %0. 10.6 Macro-related directives See Table 8 for macro-related directives. Table 8. Macro-related directives Directive Explanation #assign Allows you to quickly delete and redefine the value of a single-line macro with no parameters. #define Defines a single-line macro as explained in Section 10.5.2: Regular (single-line) macros. Single-line macros can be declared inside multi-line macros. #endm Ends a macro definition. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |