Skip to main content

Appendix II: Task Controller and Task Processes (2)

FS(FAX)​

NAME​

fs - file system for use under MOS

SYNOPSIS​

fs() - a MOS task

command string (task name is defined as fs):

fs"<funciton>,<file_name>

DESCRIPTION​

This is a file system, based on the Double Density floppy disk, for use under MOS. The fs task is used for manipulate the files, managed by the file system. This task can only appear at the first or last position on a command string. In the former case, the file specified is to be read, while the file is to be written in the latter case.

The <function> field contains only one character indicating the function to be performed. The possible values are:

e - open an existing file (for reading).
c - open an existing file, and set the length
to zero (for rewriting).
a - append to an existing file.

If the capitals A, C, and E are used, the functions are the same as described above but the specified file is created if it does not exist.

BUGS​

This task is for reading and writing only. As for the other facilities, e.g. seek, delete, status and sync, one has to use C+S interface directly.

Note that only 15 files are permitted per disk, only drive 0 is supported at present, and no hierarchical directory is allowed.

SEE ALSO​

aed62(dev), fitter(fax)

FTP(FAX)​

NAME​

ftp, pftp - NIFTP task processes

SYNOPSIS​

ftp(), pftp() - MOS tasks

command string (task name is defined as ftp):

ftp"<function>,<code>,<user_name>,<password>,<file_name>;
<trasport_service_process>:<transport_service_parameters>

DESCRIPTION​

These tasks are implementation of Network Independent File Transfer Protocol (NIFTP) for LSIs under MOS. They employ a transport service for communication with a remote host on the network, where the same protocol must be supported. They communicate with the user process and transport service processes thourgh the Clean and Simple interface, so that they can be used in a fitter command chain directly.

The code is available in two versions: ftp which is a P+Q version supporting both server and intitiator and pftp which is a P version working only as an initiator. Both of them are capable of sending and receiving.

This implementation of NIFTP is just a subset of the proto-col as its main purpose is to provided the facsimile system with a data transmission mechanism. For the sake of simpli-city, only the necessary facilities are included in the module, while more complex facilities, such as data compres-sion and error recovery are not implemented. The following table shows the transfer control parameters being used.

Attribute       Value Mod. Remarks

Mode of access 0001 EQ Creating a new file
8002 EQ Retrieving file
Codes - - Text file, any parity
1002 EQ Binary file
Format effector 0000 EQ No interpretation
Binary mapping 0008 EQ Default byte size
Max record size 00FC EQ Default record size
Transfer size 0400 LE Default transfer size
Facilities 0000 EQ Minimum service

The meanings of the parameters in the command string are listed below:

function is the NIFTP function of our site. Any ASCII string beginning beginning with 't' means the file is to be transmitted to the remote site. Otherwise, the file will be retrieved from the remote site.

code specifies the type of the file to be transferred. Any ASCII string beginning with 'b' means it is a binary file, while others mean text file.

user_name is the login name of the server site.

password is the password of the server site.

file_name is the name of the file to be transmitted.

transport_service_process is the process name of the tran-sport service to be used.

transport_service_parameters are the parameter string re-quired by the transport service. They are network dependent and specified by the corresponding transport service.

SEE ALSO​

fitter(fax)

GRINNELL(FAX)​

NAME​

grinnell - task to convert and display fax vector data

SYNOPSIS​

grinnell() - a MOS task

command string (task name is defined as string):

grinnell"<x0>,<y0>,<x1>,<y1>,<mode>,<colour>

DESCRIPTION​

This task takes the vector data from a Clean and Simple in-terface and displays it on the Grinnell screen. The Grinnell screen is viewed as an X-Y plane with (0,0) being the lower left hand corner, (512, 0) being the lower right hand corner, etc.

The parameters x0, y0, x1, y1 are decimal strings defining the rectangular space on the screen where the image is to be displayed. If the image is smaller than this area, it is ar-tificially expanded to the size of this area. If the image is larger than this area it is truncated to the size of the area.

The colour field consists of any combination of the charac-ters r,g or b to define the colours red, green and blue respectively. For instance "gb" would write the image as yellow.

The mode defines how the image is to be displayed. Any com-bination of the characters r,a and z may be used, to the following effect:

r = reverse image
a = additive image
z = zerowrite image.

There are three bit planes to define the three colours. Nor-mally the bit planes corresponding to the selected colours have either zero bits or one bits written to them depending upon whether the image or the background is being written. For zerowrite, all non-selected bit planes (i.e. colours) are always set to zero, thus erasing any unselected colours in the area. Additive mode means that in the selected colour planes the new bits are ORed in, rather than just written. Thus the image is added to. In reverse mode, the image writ-ten as one bits is written as zero bits and the bits written as zero bits are written as one bits, i.e. the bits are flipped before being used.

SEE ALSO​

grinnell(dev), vector(fax), fitter(fax)

MERGE(FAX)​

NAME​

merge - merge two images together

SYNOPSIS​

merge() - a MOS task

command string (task name is defined as merge):

merge"<file_name>,<action>,<x0>,<y0>,<x1>,<y1>

DESCRIPTION​

This routine operates as a MOS pipe task merging two images together to form the result image. Input and output are im-age data files in the form of vectors.

One of the two input images is called background which is to be copied directly. This is specified by the parameter file_name. The image data of the back ground is read via a 'tunnel', maintained by this task. Another input image is taken form the Clean and Simple interface managed by the fitter. As shown in the following diagram, the position where it is to be put on the background image is specified by the parameters x0, y0, x1, y1, which are decimal strings. This implies that the dimension of the image is x1 - x0 and y1 -y0.

     (0, 0)                     width  X
+-------------------------+---->
| |
| (x0, y0) |
| +---------+ |
| | | |
| | | |
| | | |
| | | |
| | | |
| +---------+ |
| (x1, y1) |
| |
| |
| (back ground) |
height +-------------------------+
|
|
Y V

The parameter action indicates how the two images are merged. If it set to 0, The second image is simply overlaid on the back ground image. On the other any non-zero value causes the second image to replace the specified area of the back ground image.

BUGS​

One has to make sure that

0 < x0 < width_of_back_ground
0 < y0 < height_of_back_ground
0 < x1 < width_of_back_ground
0 < y1 < height_of_back_ground

In addition, x0, y0, x1, y1 must be consistent with the di-mension of the image

SEE ALSO​

vector(fax), getl(fax), putl(fax), chop(fax), fitter(fax)