aboutsummaryrefslogtreecommitdiffstats
path: root/tools/abcprint.txt
blob: d63c367c21f9950f0458f85ca26c3b13941a91c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
abcprintd protocol

FF 00	-> end of print job

FF FF	-> FF as part of print job

All other bytes are part of a print job


File sharing commands:
----------------------

All commands start with FF <opcode> <seq>, and all responses begin
with FF <opcode> <seq> <err>, where <err> is 0 for OK and otherwise
0x80+ABC80 error code.

FF A0 ss ixix NNNNNNNNEEE	OPEN TEXT

   	ixix = Address of IX-map (used as a handle)

	Open an existing file for reading in text mode
	If the filename is empty (all spaces), read the directory

FF A1 ss ixix NNNNNNNNEEE	OPEN BINARY

	Open an existing file for reading in binary (block) mode

FF A2 ss ixix NNNNNNNNEEE	PREPARE TEXT

   	Create a new file for writing in text mode

FF A3 ss ixix NNNNNNNNEEE	PREPARE BINARY

   	Create a new file for writing in binary (block) mode

FF A4 ss ixix			INPUT

   	Read a text line; response followed by len (2 bytes) + data

FF A5 ss ixix len		READ BLOCK

	Read a data block of specified len; response: len + data

FF A6 ss ixix len data...	PRINT

   	Write a text line or data block

FF A7 ss ixix			CLOSE

   	Close a file handle

FF A8 ss xxxx			CLOSE ALL

	All files are closed and forgotten.  xxxx ignored.

FF A9 ss xxxx			CLOSE ALL NO REPLY

	All files are closed and forgotten.  xxxx ignored.
	No response token is sent.


Debug console
-------------

FF C0 .... 00

	Text between FF C0 and terminating 00 are written out on
	stdout for abcprintd if the -c option was given.  Intended to
	be used for debugging messages.