Elmo HARSFEN0602 Network Hardware User Manual


 
HARSFEN0602
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 ,
Stack_Immediate, BP_Relative
Assigned value (source)
Addressing mode2 Absent, Mem_Direct ,
Stack_Immediate , BP_Relative
Variable or stack member
(Destination)
Promotion N.A.
Output type N.A.
Imposes end of line No
7.7.21 NOT – 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.22 REM – 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