| 전자부품 데이터시트 검색엔진 |
|
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 |
|
링크 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 |