
V.
SUBROUTINES (cont.)
SOLOS provides entry points to Open, Read, Write and Close
tape files. Each of these routines requires that certain con-
ventions be followed to ensure accurate data transfers.
File Open Routine
FOPEN
The Open routine sets up certain internal parameters to keep
track of data requests. This operation should be called only
once prior to the first access of the file. The File Header
information is the same format as in the Block Access mode and
is used in both reading and writing of files. If the Byte
Accesses are of the Read type, SOLOS will search the tape file
until the correct file 'name' is found as specified by the File
Header information. On the next Read access, SOLOS will transfer
the first data byte of the file. If the Byte Accesses are of
the Write type, the File Header information will be transferred
onto the file.
The entry point for FOPEN is C007.
On entry: Register A contains File # (1 or 2) same as tape
unit (1 or 2).
Registers H & L contain address of the File Header
information.
On exit:
Normal return: All registers are altered and file
is ready for accesses.
Error return: The Carry Flag is set. Reason for
error: file already open.
Write Byte Routine WRBYT
The Write Byte routine writes a single byte of data into a
buffer file. SOLOS stores this data until it contains 256
bytes. It then writes this block onto the tape, followed by a
CRC character (error checking character). SOLOS then resets
the buffer file for the next 256 bytes of data.
The entry point for WRBYT is C010.
On entry: Register A contains File # (1 or 2).
Register B contains the byte of data to be
transferred onto tape.
On exit:
Normal return: Carry Flag cleared.
Error return: Carry Flag set - errors caused by:
1.
file NOT open, or
2.
file previously used for reading.
22
Содержание Sol-PC
Страница 35: ......
Страница 89: ......
Страница 90: ......
Страница 91: ......
Страница 92: ......
Страница 93: ......
Страница 94: ......
Страница 95: ......
Страница 96: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 100: ......
Страница 101: ......
Страница 102: ......
Страница 103: ......
Страница 104: ......
Страница 105: ......
Страница 106: ......
Страница 107: ......
Страница 108: ......
Страница 114: ...PROCESSOR TECHNOLOGY CORPORATION Sol OPERATING PROCEDURES SECTION VII VII 6 Figure 7 1 Connecting the basic Sol system...
Страница 126: ...PROCESSOR TECHNOLOGY CORPORATION Sol OPERATING PROCEDURES SECTION VII VII 18 Table 7 4 Sol Keyboard Assignments...
Страница 151: ...VIII 11...
Страница 167: ...VIII 27...
Страница 186: ......
Страница 187: ...SECTION IX SOFTWARE Sol TERMINAL COMPUTERTM Processor Technology...
Страница 191: ......
Страница 197: ......
Страница 223: ......
Страница 224: ......
Страница 225: ......
Страница 226: ......
Страница 227: ......
Страница 228: ......
Страница 229: ......
Страница 230: ......
Страница 231: ......
Страница 232: ......
Страница 233: ......
Страница 234: ......
Страница 235: ......
Страница 236: ......
Страница 237: ......
Страница 238: ......
Страница 239: ......
Страница 240: ......
Страница 241: ......
Страница 242: ......
Страница 243: ......
Страница 244: ......
Страница 245: ......
Страница 246: ......
Страница 247: ......
Страница 248: ......
Страница 249: ......
Страница 250: ......
Страница 251: ......
Страница 252: ......
Страница 253: ......
Страница 254: ......
Страница 255: ......
Страница 256: ......
Страница 257: ......
Страница 258: ......
Страница 259: ......
Страница 260: ......
Страница 261: ......
Страница 262: ......
Страница 263: ......
Страница 264: ......
Страница 265: ......
Страница 266: ......
Страница 267: ......
Страница 268: ......
Страница 269: ......
Страница 270: ......
Страница 271: ......
Страница 272: ......
Страница 273: ......
Страница 274: ......
Страница 275: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......