Remote-processing BASIC 52 Bedienungsanleitung Seite 55

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 163
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 54
RPBASIC-52 PROGRAMMING GUIDE
2-36
EXECUTE
Syntax: EXECUTE [segme nt]
Where: segment = program to execute
Function: Loads and runs program specified by segment.
Mode: COMMAND, RUN
Use: EXECUTE n
Cards: RPC-320, RPC-330
DESCRIPTION
Com mand gets a program from the flas h EPR OM and ex ecutes it. segment specie s the pro gram to execute.
The program saved by the SAVE n command is execute d. The range of segment depends upon the flash
EPROM size. See the SAVE command for more information.
The effect of EXEC UTE is the same a s typing LOAD n, then RUN. The difference is E XECUTE is part of a
program.
NOTE: Every time EXECUT E is run, all variables and strings are reset. Variables and strings CANNOT be
passed from one program to another except through peeking and poking to RAM. ONTIC K and
ONITR interrupts are cleared as is ONERR.
String and numeric data can be saved for use by other programs using any of the POKE and PEEK
statements. Data can be POKE d in to space above MT OP (7E00H in a 32K RAM system) or into m emory
segment 1 (128K RAM) or 1-7 (512K R AM).
Some parameters are not cleared by running EXECUTE. These are the tick timers (TICK), serial
communication buffers, and data saved by POKEing. No hardware conditions are reset. No parameters set
by any CO NFIG statement are reset.
Loading and executing time depend upon program length. 0.22 seconds is required for clearing variables and
resetting Basic. Ad d to this time the actual transfer tim e. Tran sfer tim e is at a rate of 5 0,000 bytes/se cond.
A 20K program requires about 0.4 seconds to begin running after the EXECU TE statement is finished.
RELATED
LOAD, SAVE
ERROR
BAD ARGUM ENT when segment is out of range.
EXAMPLE
The first lines were saved to program segment 0. The second set to 1.
10 PRINT "Program number 0"
20 EXECUTE 1
>save 0
10 PRINT "Program number 1"
20 EXECUTE 0
>save 1
>run
Program number 0
Program number 1
Program number 0
Seitenansicht 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 162 163

Kommentare zu diesen Handbüchern

Keine Kommentare