beautypg.com

Echelon Neuron User Manual

Page 210

background image

Mnemonic

Operand

Operation

Description

NOP

IP = IP + 1

No operation is done.

NOT

TOS = NOT TOS
C = 0
IP = IP+1

Change TOS to its one's

complement.

OR

TOS = TOS OR [DSP--]
C = 0
IP = IP+1

Bitwise OR of TOS and NEXT.

Drop NEXT.

OR

#literal

TOS = TOS | LITERAL
C = 0
IP = IP+2

OR literal with TOS.

OR_R

TOS = TOS OR [DSP--]
C = 0
Return

Bitwise OR of TOS and NEXT.

Drop NEXT. Return to caller.

POP

absolute

address

[absolute address] = TOS
TOS = [DSP--]
IP = IP+3

Pops TOS and stores it at the

absolute address.

POP

!D

[BP+D] = TOS
TOS = [DSP--]
IP = IP+1

Pops TOS and stores it at the

BP plus displacement address

D.
Displacement range is 8..23.

POP

!TOS

[BP+TOS] = [DSP--]
IP = IP+1

Pops next element and stores it

at the BP plus TOS address.
TOS unchanged.

POP

[PTR] [D]

[[BP+(PTR*2)]+D] = TOS
TOS = [DSP--]
IP = IP+2

Pops TOS and stores it at the

address held in 2-byte pointer

PTR plus unsigned

displacement D of 0 to 255.

POP

[PTR] [TOS]

[[BP+(PTR*2)]+TOS]=[DSP--]
IP = IP+1

Pops next element and stores it

at the address held in 2-byte

pointer PTR plus TOS address.

POP

CPUREG

CPUREG = TOS
TOS = [DSP--]
IP = IP+1

Pops TOS and stores it in the

specified register.
CPUREG = FLAGS, RSP, DSP

200

Neuron Assembly Instructions Listed by Mnemonic