Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

45111 Arkusz danych(PDF) 54 Page - List of Unclassifed Manufacturers

Numer części 45111
Szczegółowy opis  14-DAY MONEY BACK GUARANTEE
PDF  184 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  ETC2 [List of Unclassifed Manufacturers]
Strona internetowa  
Logo ETC2 - List of Unclassifed Manufacturers

45111 Arkusz danych(HTML) 54 Page - List of Unclassifed Manufacturers

Back Button 45111 Datasheet HTML 50Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 51Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 52Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 53Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 54Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 55Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 56Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 57Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 58Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 54 / 184 page
background image
7 The SASM Assembler
Page 54
• SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.
The following example demonstrates the use of the IF...ELSE directive.
Delay
EQU
10
Choice
EQU
1
IF
Delay >=9
mov
$08, #5
add
$09, #%011
ENDIF
IF
Choice = 0
mov
$0A, #$1B
ELSE
mov
$0A, #$1C
ENDIF
The condition for an IF...ELSE directive can contain expressions and multiple conditional statements.
Two or more conditional statements may be specified by appending them together with the conditional
operators NOT, AND, OR and XOR. For example:
IF choice = 1 AND delay > 9
would assemble the code block following it if choice equals 1 and delay is greater than 9 at assemble time.
If the statement or expression evaluates to anything other than zero (0), the condition is true; otherwise,
the condition is false.
7.3.13 The IF{N}DEF…ELSE…ENDIF Directives
The IFDEF…ELSE (if defined) and IFNDEF…ELSE (if not defined) directives are very similar to the
IF…ELSE directive. The difference is they assemble or prevent assembly of code blocks based on
whether a symbol is defined or not. For example:
DriverOn
EQU 1
IFDEF
DriverOn
{some code block here}
ENDIF
would assemble the code block in the IFDEF statement because the DriverOn symbol was defined. If
DriverOn
was not defined (i.e. line number 1, above, was commented out) the code block would be ig-
nored.
Note that SASM considers labels to be defined when there is an assignment using EQU or “=” in the
code before the IF{N}DEF directive, whereas the Parallax Assembler only accepts assignments using
EQU.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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