Elmo HARmonica Network Hardware User Manual


 
HARSFEN0602
Imposes end of line No
7.7.32 SETINDEX
Purpose:
Set value to array variable defined in data segment.
Algorithm:
DataSeg + Op1
Arr (array address)
(SP)
Ind (array index)
(SP –1)
Val (assign value)
Arr[Ind] = val ; (enter value to array)
Attributes
Attribute Value Comment
Op code May change in future
versions
Number of arguments 1
Argument type Signed short integer
Addressing modes Mem_Direct Address of array in data
segment (ram) .
Array index is at top of stack
.
Set value is at one entry
below top of stack .
Promotion N.A.
Output type N.A. Type of assign value from
stack
Imposes end of line No
7.7.33 SHR – Shift Right
Purpose:
Shift right 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.34 SHL – Shift Left
Purpose: