Echelon Neuron User Manual
Page 209

Mnemonic
Operand
Operation
Description
DIV
TEMP = int([DSP] ÷ TOS)
TOS = int([DSP] % TOS)
[DSP] = TEMP
IP++
Divide unsigned integer in
NEXT by unsigned integer in
TOS.
Place unsigned quotient in
TOS, unsigned remainder in
NEXT.
Division by zero results in a
quotient of 0xFF and the
remainder equal to the
dividend. If enabled, it will
cause a trap but will not result
in a reset.
DROP
NEXT
DSP--
IP = IP+1
Remove NEXT from data
stack.
DROP
[RSP]
RSP++
IP = IP+1
Remove top byte from return
stack.
DROP
TOS
TOS = [DSP--]
IP = IP+1
Remove TOS from data stack.
DROP_R
NEXT
DSP--
Return
Remove NEXT from data
stack. Return to caller.
DROP_R
TOS
DSP--
Return
Remove TOS from data stack.
Return to caller.
INC
TOS = TOS +1
IF result > 255
C = 1
ELSE
C = 0
IP = IP+1
Increment TOS.
INC
[PTR]
[BP + (PTR * 2)]++
IP = IP+1
Increment 2-byte PTR.
MUL
[DSP]:TOS = TOS * [DSP]
IP++
Multiply unsigned integer
stack elements NEXT:TOS =
NEXT * TOS.
Place unsigned 16-bit result in
TOS and NEXT.
Neuron Assembly Language Reference
199