Call 70 – rom to ram program transfer, Call 70 – rom to ram program transfer -8, Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 104: Syntax, Example

Advertising
background image

Publication 1746-RM001A-US-P

8-8 Execution Control and Interrupt Support Functions

CALL 70 – ROM to RAM
Program Transfer

Purpose

Use CALL 70 to shift program execution from a running ROM program to the
beginning of the RAM program. No arguments are PUSHed or POPped.

Syntax

CALL 70

Example

READY

>LIST

1

REM EXAMPLE PROGRAM

10 REM SAMPLE ROM PROGRAM FOR CALL 70

20 PRINT “NOW EXECUTING ROM 5”

30 CALL 70 : REM GO EXECUTE RAM

40 END

READY

>RUN

NOW EXECUTING ROM 5

NOW EXECUTING RAM

READY

>LIST

1

REM EXAMPLE PROGRAM

10 REM SAMPLE RAM PROGRAM FOR CALL 70

20 PRINT “NOW EXECUTING RAM”

30 END

READY

IMPORTANT

The first line of the RAM program is not executed. We
recommend that you make it a remark.

Advertising