45300 Parallax Inc, 45300 Datasheet - Page 70
![BOARD PROTO SX48](/photos/9/25/92507/mfg_45300_sml.jpg)
45300
Manufacturer Part Number
45300
Description
BOARD PROTO SX48
Manufacturer
Parallax Inc
Type
MCUr
Specifications of 45300
Contents
Board
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SX48
For Use With
130-28029 - KIT PARTS SMART SENSORS45111 - MANUAL FOR SX-KEY/BLITZ VER. 2.028850 - CARRIER BOARD BOARD OF EDU USB
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
453001
Manufacturer:
LITTELFUSE/力特
Quantity:
20 000
Company:
Part Number:
453002
Manufacturer:
LITTELFU
Quantity:
1 000
- Current page: 70 of 184
- Download datasheet (2Mb)
7 The SASM Assembler
label. A macro label is the name of a macro block (see the MACRO directive in Section 7.3.15 – The
Macro Directive) and is unique.
Depending on the option you have selected in the Configuration window, local labels must begin in text
column 1, or may be indented.
No macro label can exist with the same name as another macro or global label. Actually, when a
program contains a macro definition, and you use the macro name as a global label by mistake, the
assembler would not report an error, but insert the macro code at the location of the “global label”. The
following code demonstrates global and local labels.
main
:loop
continue
:loop
The example above contains two global labels, main and continue, and two local labels, both named :loop.
The area between the main and continue global labels is where a local label can exist. Since the djnz in-
struction in line 3 references the :loop label, and line 3 is between the global labels main and continue, it
will only jump to the :loop label at line 2 and not the :loop label at line 6.
You may also jump to a local label from “outside”. For example, the instruction
elsewhere in the above program example would cause the program execution to be continued with the
instruction.
Local and global labels are also allowed within a macro. It is suggested that global labels not be used
within a macro, however, as that would prevent the macro from being called more than once.
7.7
Expressions may be used within the arguments of instructions and directives to calculate values at
assemble time. The use of expressions helps build more maintainable, easier to understand code. For
example, if a program uses values that are all related to the same base number, it makes sense to
include an expression crafted from that relationship. If a symbol N is defined as being equal to the base
number 2, then N*2+1 and N*3 can be used to derive values related to it; 5 and 6 in this case. At a later
time, it might become necessary to adjust the base value to 3 and since expressions were used to derive
the related values, only the symbol N needs to be modified.
Page 70 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
Expressions
mov
mov
djnz
move
djnz
jmp
jmp
djnz
loop_count, #15
$09, #100
loop_count, :loop
loop_count, #50
loop_count, :loop
main ;start over
continue:loop
loop_count, :loop
; initialize loop_count
; set some other register
; decrement loop_count,
; jump to :loop if not zero
; set loop_count to 50
; decrement loop_count,
; jump to :loop if not zero
Related parts for 45300
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: