Elmo HARSFEN0602, HARmonica software manual Getcomm Get Command, JMP Jump

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 81
Image 81

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

DataSeg + Op1

Arr (array address)

 

 

(SP) Ind

(array index)

 

 

 

Arr[Ind]

(SP) (return value)

 

 

 

Attributes

 

 

 

 

 

Attribute

 

 

Value

Comment

 

Op code

 

 

 

May change in future

 

 

 

 

 

versions

 

Number of arguments

1

 

 

 

 

 

 

Argument type

 

Signed short integer

 

 

Addressing modes

Mem_Direct

Location of variable (index)

 

→→

 

 

 

in the variable symbol table.

 

 

 

 

 

Address of array variable is

 

 

 

 

 

taken from the table.

 

 

 

 

 

Array index is at top of stack.

 

Promotion

 

 

N.A.

 

 

Output type

 

Argument Type1

Value from array is pushed at

 

 

 

 

 

the top of stack instead of

 

 

 

 

 

array index

 

Imposes end of line

No

 

 

79

7.7.10GET_COMM – Get Command

Purpose:

 

Call to function service of a ‘get’ command.

Algorithm:

 

FuncTable

(list of functions handlers)

 

(SP)

(put return value at top of stack)

 

FuncTable[Op1]()

 

SP SP +1

 

 

 

 

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.

 

 

 

 

 

If system parameter is an

 

 

 

 

 

array , array index is at top of

 

 

 

 

 

stack .

Promotion

 

 

 

N.A.

 

Output type

 

 

N.A.

Output argument is at top of

 

 

 

 

 

stack.

 

 

 

 

 

Type set according to service

 

 

 

 

 

function .

Imposes end of line

 

No

 

7.7.11JMP – Jump

Purpose:

Jump to another location in the program.

Algorithm:

Page 81
Image 81
Elmo HARSFEN0602, HARmonica software manual Getcomm Get Command, JMP Jump