beautypg.com

Pushs (push short) – Echelon Neuron User Manual

Page 120

background image

PUSHS (Push Short)

The PUSHS instruction pushes the value of the specified operand number into

TOS. The PUSHS instruction uses the immediate addressing mode. The

expression number must be in the range 0 to 7.
See also PUSH (Push onto Stack) for information about the PUSH #number

instruction.
The PUSHS instruction applies to Series 3100, 5000, and 6000 devices.

Syntax:
The PUSHS instruction requires a single operand to specify the number:

PUSHS #number

The value of number must be in the range 0..7. The number sign or hash (#) is

required to specify the immediate value.
Table 44 describes the attributes of the PUSHS instruction.

Table 44. PUSHS Instruction

Instruction

Hexadecimal

Opcode

Instruction

Size (Bytes)

CPU Cycles

Required

Affect on

Carry Flag

PUSHS #0

80

1

4

None

PUSHS #1

81

1

4

None

PUSHS #2

82

1

4

None

PUSHS #3

83

1

4

None

PUSHS #4

84

1

4

None

PUSHS #5

85

1

4

None

PUSHS #6

86

1

4

None

PUSHS #7

87

1

4

None


Example:
The following example performs the operation 2 AND 3 by pushing the

immediate values 2 and 3 onto the stack.

pushs #2 ; (2, -, -)

pushs #3 ; (3, 2, -)

and ; (2, -, -)

110

Neuron Assembly Language Instruction Statements