| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3350 bảng dữ liệu(PDF) 69 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 bảng dữ liệu(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. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |