beautypg.com

Chapter 4. programming – IAI America S-SEL-E User Manual

Page 118

background image

Page 113

EXSR 1

EXSR 1

EXSR 1

BGSR 1

EDSR

Subroutine

Call subroutine

6.

Subroutine

Frequently repeated steps in a program can be expressed as subroutines in order to simplify the entire application program.
These subroutines are individually usable in each program. (Up to a maximum of 15 subroutines can be nested)

Chapter 4. Programming

Execute subroutine command

Command

Operand 1

BGSR

Subroutine No. (1 ~ 64 Integers)

Begin subroutine command

Command

Operand 1

EDSR

--------

End subroutine command

Command

Operand 1

EXSR

Subroutine No. (1 ~ 64 Integers, or Variables)

This manual is related to the following products: