| 数据搜索系统,热门电子元器件搜索 |
|
UM0144 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 92 page ![]() ST7 Assembler Linker 3 ST7 Assembler UM0144 21/92 Operator names longer than one character must be followed by a space character. For example, '1 AND 2' is correct, '1AND2' is not. Place the curly braces { } around arithmetic expressions. Also, always use curly braces at the top-level, when defining a numeric expression. Not doing so may produce unexpected results. 3.3.4 Comments Comments are preceded by a semicolon. Characters following a semicolon are ignored by the assembler. 3.3.5 A source code example Below is an example of a short source code. Table 7. Level 4 operators Operation Result, level #4 a-b a minus b a+b a plus b Wrong syntax: #define SIZE 128 DS.W SIZE+1 ; Wrong, syntax error #IF SIZE eq 1 ; Wrong, same as #IF SIZE #ENDIF Correct syntax: #define SIZE 128 DS.W {SIZE+1} ; OK #IF {SIZE eq 1} ; OK #ENDIF st7/ ; small example module showing source formats ioport equ $8000 ; 8 bit I0 port A handshake equ $9000 ; write xx here to strobe segment 'program' start ld a,#0 ; zero counter loop ld ioport,x ; store into ioport |
|
链接网址 |
| 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 |