45181 Parallax Inc, 45181 Datasheet - Page 132

SX TECH TOOL KIT NO POWER

45181

Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet

Specifications of 45181

Contents
SX Book, SX Key, SX Tech Board, Samples, Resonators, Cable and Manual
Product
Microcontroller Basic Stamps
Operating Supply Voltage
5 V
For Use With/related Products
SX MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
13 Appendix C: SX Instruction Set
IREAD
Operation: The instruction or value at the 12-bit location MODE:W is read and stored into the MODE:W bits. This
JB
Operation: If src_bit is set, a jump to addr9 is executed.
JC
Operation: If the carry flag is set, a jump to addr9 is executed.
JMP
Operation: Jump to address in dest. The lower 9 bits of the literal addr9 are moved into the program counter in
Page 132 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
1) IREAD
1) JB
1) JC
1) JMP
2) JMP
3) JMP
Command
Command
Command
Command
instruction can be used to read values in tables created with the DW directive. Use the MODE and MOV
instructions to read and write from the mode register.
src_bit, addr9
op.bit, addr9
addr9
addr9
dest
addr9
W
PC+W
command #1. W is moved into the program counter in command #2. W+1 is added to the program
counter in command #3. Bit 9 of the program counter is cleared in command #2 and #3, so the jump
destination will be in the first 256 words of any 512-word page. This instruction is useful for jumping
into lookup tables comprised of RETW instructions, or jumping to particular routines. The flags are set
as in an ADD instruction for command #3. If CARRYX is specified, c affects the result of command #3. Insert
a CLC before command #3 to avoid strange results.
Words
Words
Words
Words
1
2
2
1
1
1
2 or 4 (jump)
2 or 4 (jump)
(8 or 12)
(8 or 12)
Cycles
Cycles
Cycles
Cycles
4 (16)
3 (8)
3 (8)
3 (8)
PC, C, DC, Z
MODE, W
Affects
Affects
Affects
Affects
PC
PC
PC
PC
Read instruction at MODE:W into MODE:W
0000 0100 0001 IREAD
0110 bbbf ffff SNB op.bit
101k kkkk kkkk JMP addr9
0110 0000 0011 SNC
101k kkkk kkkk JMP addr9
101k kkkk kkkk JMP addr9
0000 001f ffff JMP w
0001 111f ffff ADD PC, W
Jump if src_bit is set
Coding
Coding
Coding
Coding
Jump if carry
Jump to dest

Related parts for 45181