| Electronic Components Datasheet Search |
|
UM0144 Datasheet(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 Datasheet(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 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |