Elmo HARSFEN0602, HARmonica Rslte Relational Operator ==, Rsltne Relational Operator !=

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 89
Image 89

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

 

 

 

 

Attribute

Value

Comment

 

Op code

 

May change in future

 

 

 

versions

 

Number of arguments

None

 

 

Argument types

N.A.

Both arguments types are set

 

 

 

according to stack members

 

 

 

flags

 

Addressing modes

Absent

 

 

Promotion

N.A.

 

 

Output type

Int

Compare result is always

 

 

 

integer

 

Imposes end of line

No

 

 

7.7.28RSLTE – Relational Operator (==)

Purpose:

Compare two numbers, if they are equal condition is true otherwise its false (numbers are at top two entries of the stack) .

Algorithm:

 

 

 

((SP-1) = = (SP))

(SP)

 

 

SP SP - 1

 

 

 

Attributes

 

 

 

Attribute

 

Value

Comment

Op code

 

 

May change in future

 

 

 

versions

Number of arguments

None

 

Argument types

N.A.

Both arguments types are set

 

according to stack members

 

flags

Addressing modes

 

Absent

 

Promotion

 

N.A.

 

Output type

 

Int

Compare result is always

 

 

 

integer

Imposes end of line

No

 

7.7.29RSLTNE – Relational Operator (!=)

Purpose:

Compare two numbers, if they are not equal condition is true otherwise its false (numbers are at top two entries of the stack) .

Algorithm:

 

 

 

((SP-1) != (SP))

(SP)

 

 

SP SP - 1

 

 

 

Attributes

 

 

 

Attribute

 

Value

Comment

Op code

 

 

May change in future

 

 

 

versions

Number of arguments

None

 

Argument types

N.A.

Both arguments types are set

 

according to stack members

 

flags

87

Page 89
Image 89
Elmo HARSFEN0602, HARmonica software manual Rslte Relational Operator ==, Rsltne Relational Operator !=