Echelon Neuron User Manual
Page 207
![background image](/manuals/735710/207/background.png)
Mnemonic
Operand
Operation
Description
ALLOC
#literal
[DSP+1] = TOS
DSP = DSP + literal
IP = IP+1
Move DSP by literal.
Literal range is 1 to 8.
AND
TOS = TOS & [DSP--]
C = 0
IP = IP+1
Bitwise AND of TOS and
NEXT. Drop NEXT.
AND
#literal
TOS = TOS & LITERAL
C = 0
IP = IP+2
AND literal with TOS.
AND_R
TOS = TOS & [DSP--]
C = 0
Return
Bitwise AND of TOS and
NEXT. Drop NEXT. Return to
caller.
BR
label
IP = IP+SD
IP = IP+2
Branch always.
The IP-relative displacement
SD ranges from -128 to 127.
BRC
label
IF (CARRY)
IP = IP+SD
IP = IP+2
Branch on carry.
The IP-relative displacement
SD ranges from -128 to 127.
BRF
label
IP = absolute address
Branch far.
BRNC
label
IF (!CARRY)
IP = IP+SD
IP = IP+2
Branch on not carry.
The IP-relative displacement
SD ranges from -128 to 127.
BRNEQ
#literal, label
IF [TOS <> literal]
IP = IP+SD
ELSE
TOS = [DSP--]
IP = IP+3
Branch if TOS not equal to
constant. Else drop TOS.
BRNZ
label
IF TOS <> 0
IP = IP+SD
TOS = [DSP--]
IP = IP+2
Drop TOS, branch if TOS not
zero.
The IP-relative displacement
SD ranges from -128 to 127.
Neuron Assembly Language Reference
197