Elmo HARmonica, HARSFEN0602 software manual Spadd

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 92
Image 92

 

HARSFEN0602ElmoHARmonicaSoftwareManual

 

PRELIMINARYDRAFT

 

Shift left the number below top of stack by the number at the top of 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.35

SPADD

 

 

 

 

Purpose:

 

 

Increase or decrease stack pointer with the value given as an argument.

Algorithm:

 

SP SP + OP1

 

 

Attributes

 

 

Attribute

Value

Comment

Op code

 

May change in future

 

 

versions

Number of arguments

1

 

Argument type

Signed char integer

 

Addressing modes

Immediate1

 

 

 

Promotion

N.A.

 

Output type

N.A.

 

Imposes end of line

No

 

7.7.36SUB - SUBTRACT

Purpose:

 

 

 

Subtraction of two numbers (top two entries at 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 are set

 

 

according to stack members

 

 

flags

90

Page 92
Image 92
Elmo HARmonica, HARSFEN0602 software manual Spadd