GOTO-USER: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(created page for the GOTO-USER command)
 
(→‎Related commands: SET-PERMANENT-OPEN -> SET-PERMANENT-OPENED)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
#Permitted for all users.
#Permitted for all users.
#When a program is terminated by an "escape" or "break", all files are normally closed. In order to keep them open until @GOTO-USER is typed, the command @SET-PERMANENT-OPEN should be used before the files are accessed the first time.
#When a program is terminated by an "escape" or "break", all files are normally closed. In order to keep them open until @GOTO-USER is typed, the command @SET-PERMANENT-OPEN should be used before the files are accessed the first time.
#After "escape" the values of the background RT program registers may be examined by @[[STATUS (command)|STATUS]].


Example:
Example:
Line 24: Line 25:
@[[RECOVER]]
@[[RECOVER]]


@[[CONTINUE]]
@[[CONTINUE (command)]]


@[[PLACE-BINARY]]
@[[PLACE-BINARY]]


@[[SET-PERMANENT-OPEN]]
@[[SET-PERMANENT-OPENED]]
 
== References ==
== References ==
{{ND-doc|60.050.06}} section 3.3.4.2
{{ND-doc|60.050.06}} section 3.3.4.2


{{ND-doc|60.128.01}} (printed June 1980), page 1-82
{{ND-doc|60.128.01}} (printed June 1980), page 1-82
{{ND-doc|60.128.01}} (printed June 1980), page 1-106


{{ND-doc|60.174.Q01}}
{{ND-doc|60.174.Q01}}
[[Category:Background Commands]]
[[Category:Background Commands]]

Latest revision as of 15:06, 2 October 2017

@GOTO-USER <address>

Start background program at specific address.

<address>
(octal, default = current P-register of the background program) address.

Rules:

  1. Permitted for all users.
  2. When a program is terminated by an "escape" or "break", all files are normally closed. In order to keep them open until @GOTO-USER is typed, the command @SET-PERMANENT-OPEN should be used before the files are accessed the first time.
  3. After "escape" the values of the background RT program registers may be examined by @STATUS.

Example:

@OPEN F-1:DATA, RX

FILE NUMBER IS: 101

@SET-PERMANENT-OPEN 101

@RECOVER MAIN

("escape")

@GOTO-USER

The program MAIN is started, stopped and finally resumed at the point of interruption. The file F-1:DATA is kept permanently opened in order to avoid closing at the "break".

Related commands

@RECOVER

@CONTINUE (command)

@PLACE-BINARY

@SET-PERMANENT-OPENED

References

Norsk Data Document ND–60.050.06 SINTRAN III USERS GUIDE section 3.3.4.2

Norsk Data Document ND–60.128.01 SINTRAN III REFERENCE MANUAL (printed June 1980), page 1-82

Norsk Data Document ND–60.128.01 SINTRAN III REFERENCE MANUAL (printed June 1980), page 1-106

Norsk Data Document ND–60.174.Q01 SINTRAN III QUICK REFERENCE CARD