background image
© 2005 Ubicom, Inc. All rights reserved.
- 37 -
www.ubicom.com
SX20AC/SX28AC
CALL addr8
Call Subroutine:
top-of-stack = program counter + 1
PC(7:0) = addr8
program counter (8) = 0
program counter (10:9) = PA1:PA0
2
3
1001 kkkk kkkk
none
JMP addr9
Jump to Address:
PC(7:0) = addr9(7:0)
program counter (8) = addr9(8)
program counter (10:9) = PA1:PA0
2
3
101k kkkk kkkk
none
NOP
No Operation
1
1
0000 0000 0000
none
RET
Return from Subroutine
(program counter = top-of-stack)
2
3
0000 0000 1100
none
RETP
Return from Subroutine Across Page Boundary
(PA1:PA0 = top-of-stack (10:9) and
program counter = top-of-stack)
2
3
0000 0000 1101
PA1, PA0
RETI
Return from Interrupt (restore W, STATUS,
FSR, and program counter from shadow regis-
ters)
2
3
0000 0000 1110
all
STATUS,
except
TO, PD
RETIW
Return from Interrupt and add W to RTCC (re-
store W, STATUS, FSR, and program counter
from shadow registers; and add W to RTCC)
2
3
0000 0000 1111
all
STATUS,
except
TO, PD
RETW lit
Return from Subroutine with Literal in W
(W = lit and program counter = top-of-stack)
2
3
1000 kkkk kkkk
none
System Control Instructions
BANK addr8
Load Bank Number into FSR(7:5)
FSR(7:5) = addr8(7:5)
1
1
0000 0001 1nnn
none
IREAD
Read Word from Instruction Memory Flash.
Flash Address read: {upper 4 bits of address =
lower 4 bits of MODE, lower 8 bits of address =
W register}. The 12 data bits from Flash are
copied into these same 12 bits of MODE:W.
1
4
0000 0100 0001
none
PAGE addr12
Load Page Number into STATUS(7:5)
STATUS(7:5) = addr12(11:9)
1
1
0000 0001 0nnn
PA1, PA0
SLEEP
Power Down Mode
WDT = 00h, TO = 1, stop oscillator
(PD = 0, clears prescaler if assigned)
1
1
0000 0000 0011
TO, PD
Table 16-1. The SX Instruction Set (Continued)
Mnemonic,
Operands
Description
Cycles
(Compatible)
Cycles
(Turbo)
Opcode
Bits
Affected