Type ASSEMBLE
Source Lines : 4,419
Fixes Applied : 15
Most Recent Version : Tuesday, December 12, 1978
Last Fix ID : [HRC342DS]
Module
DMSEDI (EDIT)
Function
TO MODIFY THE CONTENTS OF AN EXISTING FILE OR TO CREATE A NEW FILE.
Attributes
DISK RESIDENT
Operation
THE EDIT MODULE IS LOADED INTO STORAGE BY THE EDIT INITIALIZATION MODULE, DMSEDX. IT MAY RESIDE IN A DISCONTIGUOUS SEGMENT OR IN USER STORAGE. DMSEDX GETS FREE STORAGE FOR AND INITIALIZES THE EDIT FREE WORKING STORAGE (EDCB), THEN LOADS AND BRANCHES TO THE EDIT MODULEWITH REGISTER 1 CONTAINING THE ADDRESS OF EDCB. UPON ENTRY, A MESSAGE IS TYPED TELLING THE USER HE IS IN THE EDIT ENVIRONMENT AND 'WAITRD' IS CALLED TO READ A LINE FROM THE TERMINAL. IF A NULL LINE IS ENTERED, ANOTHER READ FROM THE TERMINAL IS EXECUTED. IF THE LINE IS NOT NULL, THE FIRST ENTRY ON THE LINE IS ASSUMED TO BE AN EDIT SUB-COMMAND; IF IT IS, A BRANCH IS TAKEN TO THE APPROPRIATE EDIT SUB-ROUTINE TO PROCESS THE COMMAND. IF THE FIRST ENTRY IS NOT RECOGNIZED AS A SUB-COMMAND, AN ERROR MESSAGE IS ISSUED TO THE TERMINAL AND ANOTHER READ IS ISSSUED TO THE TERMINAL.
Calls to Other Routines
DMSSCR - WRITE TO DISPLAY TERMINAL DMSBWR - WRITE A FILE TO DISK DMSBRD - READ A FILE FROM DISK DMSSTT - VERIFY EXISTENCE OF A FILE DMSRNM - ALTER FILEID DMSCWRB - TYPE INFORMATION TO USER CONSOLE DMSCWT - WAIT ON CONSOLE I/O DMSCRD - WAIT ON CONSOLE RESPONSE DMSCAT - STACK CONSOLE INPUT DMSERS - ERASE UTILITY FILES DMSFNS - 'CLOSE' A FILE