HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

Attributes

 

 

 

Attribute

Value

Comment

 

Op code

 

May change in future

 

 

 

versions

 

Number of arguments

2

 

 

Argument type1

Int or Float

If argument is from stack,

 

 

 

type is set according to stack

 

 

 

member flag

 

Argument type2

Int or Float

 

 

Addressing mode1

Absent, Immediate, Mem_Direct ,

Assigned value (source)

 

 

Stack_Immediate, BP_Relative

 

 

Addressing mode2

Absent, Mem_Direct ,

Variable or stack member

 

 

Stack_Immediate , BP_Relative

(Destination)

 

Promotion

N.A.

 

 

Output type

N.A.

 

 

Imposes end of line

No

 

 

7.7.21NOT – Bitwise NOT Operator

Purpose:

 

 

 

Bitwise

NOT operator – number is at top of stack .

Algorithm:

 

 

 

~(SP)

(SP)

 

 

 

Attributes

 

 

 

Attribute

Value

 

Comment

Op code

 

 

 

May change in future

 

 

 

 

versions

Number of arguments

None

 

 

Argument types

N.A.

 

Argument type must be

 

 

integer (set according to

 

 

stack member flag)

Addressing modes

Absent

 

 

Promotion

N.A.

 

 

Output type

~Int

Int

 

Imposes end of line

No

 

 

7.7.22REM – Reminder

Purpose:

 

 

 

 

Reminder from division 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 must

 

 

 

be integer (set according to

84

Page 86
Image 86
Elmo HARmonica, HARSFEN0602 software manual Not Bitwise not Operator, REM Reminder