Elmo HARmonica, HARSFEN0602 software manual Rsltor Logical or Operator, Setcomm Set Command

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 90
Image 90

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

 

 

 

 

Addressing modes

Absent

 

 

Promotion

N.A.

 

 

Output type

Int

Compare result is always

 

 

 

integer

 

Imposes end of line

No

 

 

7.7.30RSLTOR – Logical OR Operator ( )

Purpose:

If one of the numbers or both are non-zero condition is true otherwise it’s false (numbers are at top two entries of the stack).

 

Algorithm:

 

 

 

 

 

 

(SP-1) (SP)

 

(SP-1)

 

 

 

 

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 must

 

 

 

 

 

be integer (set according to

 

 

 

 

 

stack members flags)

 

Addressing modes

Absent

 

 

 

Promotion

 

 

 

N.A.

 

 

 

Output type

 

 

Int Int Int

 

 

Imposes end of line

No

 

 

7.7.31

 

SET_COMM – Set Command

 

 

Purpose:

 

 

 

 

 

 

 

Call to function service of a ‘set’ command.

 

 

Algorithm:

 

 

 

 

 

 

FuncTable

 

 

(list of functions handlers)

 

 

(SP)

ArrayIndex

 

 

 

(SP-1)

VAL

 

 

 

 

 

 

 

 

 

 

 

 

 

FuncTable[Op1](val , ArrayIndex) (call to ‘set’ command)

 

 

Attributes

 

 

 

 

 

 

 

Attribute

 

 

 

Value

 

Comment

 

Op code

 

 

 

May change in future

 

 

 

 

 

 

versions

 

 

 

 

 

Number of arguments

1

 

 

 

Argument types

Unsigned char integer

 

 

Addressing modes

Immediate1

Index of service function in

 

 

 

 

 

 

 

 

function table.

 

 

 

 

 

 

 

 

Array index is at top of stack

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

Set value is at one entry

 

 

 

 

 

 

 

 

below top of stack.

 

Promotion

 

 

 

N.A.

 

 

 

Output type

 

 

N.A.

 

 

88

Page 90
Image 90
Elmo HARmonica, HARSFEN0602 software manual Rsltor Logical or Operator, Setcomm Set Command