beautypg.com

Instructions by mnemonic – Echelon Neuron User Manual

Page 206

background image

Instructions by Mnemonic

Table 62 lists the Neuron assembly language instructions, ordered by mnemonic.

The table also summarizes the operation performed by each instruction. In this

operational summary, D represents a displacement and SD represents a signed

displacement.

Table 62. Neuron Assembly Instructions by Mnemonic

Mnemonic

Operand

Operation

Description

ADC

TOS = TOS + [DSP--] + C
next element = [++DSP]
IF result > 255
C = 1
ELSE
C = 0
IP = IP+1

Add NEXT plus CARRY to

TOS. Drop NEXT.

ADD

TOS = TOS + [DSP--]
IF result > 255
C = 1
ELSE
C = 0
IP = IP+1

Add NEXT to TOS. Drop

NEXT.

ADD

#literal

TOS = TOS + LITERAL
IF result > 255
C = 1
ELSE
C = 0
IP = IP+2

Add literal to TOS.

ADD_R

TOS = TOS + [DSP--]
IF result > 255
C = 1
ELSE
C = 0
Return

Add NEXT to TOS. Drop

NEXT. Return to caller.

196

Neuron Assembly Instructions Listed by Mnemonic