C.ls.l. Appending Function Modules; C.l5.2. Removing Function Modules - Sharp mz-3500 Manual For Use

Business computer eos 3.0
Hide thumbs Also See for mz-3500:
Table of Contents

Advertisement

Section C:
Utility Programs
****************
*
$MOD
*
****************
C.l5.l. Appending Function Modules
This call has the fOllowing format:
$MOD comfile rsxl rsx2 ••• rsxl5
The
first parameter "comfile" denotes the
11
.COM
11
file to be extended by
function
modules.
It
is
followed by a list of the
RSX
files
which
contain
the
modules to be appended.
A maximum of 15
modules
can
be
specified for a ".COM" file. The modules are loaded in the same sequence
as
specified in the coffimand line.
This has the side-effect that of two
modules
which
intercept the same system call,
the one
most
recently
loaded will be active.
If the ".COM
11
file is already extended by modules, the modules specified
new
are appended after all yet existing modules.
If a module occurring
in the list should be present in the ".COM" file, it will be replaced by
the new one.
An
example:
You have a file named
11
PROG.COM".
This file contains
the
modules
11
MOD1",
11
MOD2
11
and "MOD3" (maybe, besides the main program). Now
you enter the command
$MOD PROG MODl MOD4
This
causes the module MODl in the PROG.COM file to be replaced by
the
new
module MODl.
The module MOD4 is appended at the end of
the
list.
When
you
execute
the program,
first the module MOD4
intercepts
EOS
calls, then MOD3, MOD2 and finally, MODl.
C.l5.2. Removing Function Modules
To remove all function modules from a ".COM
11
file (thus causing a normal
".COM" file being generated), you would simply omit the module specific-
ations from the command line:
$MOD progname
By that means, all modules are removed from the file "progname.COM
1
' .
EOS User's manual
Daeumling & Zimmermann
Page 87

Advertisement

Chapters

Table of Contents
loading

Table of Contents