End Sequence Program

End Sequence Program: PEND

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

PEND

S

-

-

-

-

-

-

-

-

-

-

-

-

-

1

-

-

-

 

 

Functions

PEND instruction marks the end of a program. Scanning ends here and goes back to 0 step.

While main sequence program and sub sequence program are running, it is impossible to use the PEND instruction. Instead, use the END instruction if needed to end the program while running.

In case of having main routine program, sub routine program, interrupt program, and sub sequence program all together,  how to use the END instruction and the PEND instruction is shown in the below image.