Table of Contents

POP

Breaks execution out of a FORNEXT loop or forces RETURN to jump back to the previous GOSUB

Implemented by: a2int, Applesoft, Atari, bw32

With variations: ugBASIC (also as POP PROC)

Also written as:

Usage

POP is a kinda weird and dangerous command.

In Apple INTEGER BASIC, its purpose was to allow early break of a FORNEXT loop.

In Applesoft BASIC, the same word is used for altering the call stack: when used, the next RETURN statement will not pass execution back to the instruction right after the GOSUB which called the subroutine. Instead, execution will jump back to instruction following the second to last GOSUB which had been used.

Variations

Examples

Comments

Similar keywords

In other languages...

References