beautypg.com

Subroutines – IAI America DS-S-C1 User Manual

Page 17

background image

15

EXSR 1

EXSR 1

EXSR 1

BGSR 1

EDSR

Subroutine

Call 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)

6.

Subroutines

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)