beautypg.com

Sel language – IAI America DS-S-C1 User Manual

Page 54

background image

52

[Function]

Sets the tag number designated in operand 1.

[Example]

Refer to the GOTO command.

12. SEL Language

TAG (Tag Declaration)

GOTO (Jump)

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

i

d

n

o

c

)

g

a

l

F

·

O

/

I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

i

t

p

O

l

a

n

o

i

t

p

O

O

T

O

G

.

o

N

g

a

T

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

i

d

n

o

c

)

g

a

l

F

·

O

/

I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

i

t

p

O

l

a

n

o

i

t

p

O

G

A

T

.

o

N

g

a

T

[Function]

Jumps to the position of the tag number designated in operand 1.

Note:

The GOTO command is valid only within the same program.

[Example 1]

TAG

1

Set the tag.

:
:
:
GOTO

1

Jump to tag 1.

[Example 2]

LET

1

10

Assign 10 to 1.

GOTO

*1

Jump to tag 10 (content of variable 1).