Elmo HARSFEN0602, HARmonica Syssubj Jump To System Subroutine, Unarynot Logical not Operator

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 93
Image 93

 

HARSFEN0602ElmoHARmonicaSoftwareManual

 

 

 

 

PRELIMINARYDRAFT

 

 

 

 

 

 

 

 

 

 

 

 

Addressing modes

 

 

Absent

 

 

 

 

 

 

 

Promotion

 

 

 

Int - Float

 

 

 

 

 

 

 

 

 

 

Executes as

 

 

 

 

 

 

 

 

 

(float) Int - Float

 

 

 

Output type

 

 

Int - int

 

int

 

 

 

 

 

 

 

Int - Float

 

 

Float

 

 

 

 

 

 

 

Float - Float

 

Float

 

 

 

Imposes end of line

 

No

 

 

 

 

 

 

7.7.37

SYSSUBJ – Jump To System Subroutine

 

Purpose:

 

 

 

 

 

 

 

 

Call to system function.

 

 

 

 

 

 

Algorithm:

 

 

 

 

 

 

 

FuncTable

(list of functions handlers)

 

 

 

 

FuncTable[Op1]() (SP)

(put return value

at top of stack)

 

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 system function in

 

 

 

 

 

 

 

 

 

function table

 

 

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.38UNARY_NOT - Logical NOT Operator (!)

Purpose:

If number is non-zero condition is false otherwise condition is true.

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

 

 

 

 

 

91

Page 93
Image 93
Elmo HARSFEN0602, HARmonica software manual Syssubj Jump To System Subroutine, Unarynot Logical not Operator