EDTUPCB
(subroutine control block) contains the parameters which define the EDT default values for the IEDTCMD
function.
Creating the EDTUPCB control block
The IEDTUPCB
Assembler macro is used to create the EDTUPCB
control block.
Name | Operation | Operands |
[name] | IEDTUPCB | [ { D | C } ] [,prefix] [,VERSION= { 2 | 3 } ] |
name | – Symbolic name of the first If name is not specified then |
D C | A dummy section ( A memory section with symbolic addresses is generated (no |
prefix | One character with which the generated field names should start. If prefix is not specified, |
VERSION | Selects which version of the control block is to be generated: Version 2 is used with the V16 format of the interface. |
If the macro IEDTUPCB VERSION=3
is specified then the EDTUPCB
control block is generated in the following form:
IEDTUPCB D,VERSION=3 1 EDTUPCB MFPRE DNAME=EDT, MF=D 2 EDTUPCB DS 0F 1 *--------------- EDT UNIT NUMBER, EDTUPCB VERSION NUMBER -------------- 1 EUPUNITC EQU 66 EDT UNIT NUMBER 1 EUPVERSC EQU 3 EDTUP VERSION NUMBER 1 EUPCMDM EQU (32763+4) EDT COMMAND MAXLENGTH 1 EUPMSGM EQU (80+4) EDT MESSAGE MAXLENGTH 1 *--------------- CONTROL BLOCK EDTUPCB -------------------------------- 1 * *---- CONTROL BLOCK HEADER -------------------- 1 EUPFHE DS 0XL8 GENERAL OPERAND LIST HEADER 1 EUPIFID DS 0A INTERFACE IDENTIFIER 1 EUPUNIT DC AL2(XUPUNITC) UNIT NUMBER 1 DS AL1 RESERVED 1 EUPVERS DC AL1(XUPVERSC) FUNCTION INTERFACE VERSION NUMBER 1 DS A RESERVED 1 * *---- INHIBIT FLAGS --------------------------- 1 EUPINHBT DC X'00' INHIBIT FLAG BYTE 1 EUPMODE EQU X'80' * NO SWITCH TO COMPATIBLE MODE V17.0 1 EUPNTXT EQU X'40' * NO <TEXT> (HALT / RETURN) 1 EUPN@EDO EQU X'20' * NO @EDIT ONLY (L-MODE : RDATA) 1 EUPN@EDT EQU X'10' * NO @EDIT (L-MODE : WRTRD) 1 EUPNUSER EQU X'08' * NO USER-PROG. (@RUN/@USE) 1 EUPNBKPT EQU X'04' * NO BKPT (@SYSTEM) 1 EUPNCMDM EQU X'02' * NO CMD (@SYSTEM <STRING>) 1 EUPNEXEC EQU X'01' * NO MEXEC/MLOAD (@EXEC/@LOAD) 1 EUPNINHB EQU X'00' * NO RESTRICTIONS 1 DS AL3 RESERVED 1 *--------------- LENGTH OF CONTROL BLOCK ------------------------------ 1 EUPUPCBL EQU *-EDTUPCB
Meaning of the control block fields | Length | Format | Parameter type | ||
Call | Return | ||||
| Unique identification of EDT. | 2 | X | C(M) | |
| Control block version number. | 1 | X | C(M) | |
| By setting the individual bits, it is possible to Disables switchover between Disallows to specify Disables @EDIT ONLY Disables @EDIT Disables @USE and @RUN Disables the @SYSTEM statement (without Disables the @SYSTEM statement (with Disables the @EXEC / @LOAD statement | 1 | C |
| Call parameter | Must be supplied by the caller. This is set by the macro (when the |
| Return parameter Binary format | Supplied by EDT. Binary digits |
Changes compared to the V16 format
The EUPMODE
flag is new.
Compatible V17 format
The
EUPMODE
flag must not be set.The constant
EUPMSGM
has only been retained for reasons of compatibility. The maximum length of the message is determined dynamically depending on the terminal type.