4 * [Generated from xsave, 08 November 1995]
7 #pragma include_only_once
8 #pragma force_top_level
13 /*----- Overview ----------------------------------------------------------*
27 /* --- xsave_save --- *
29 * On entry: R0 == pointer to saver routine
30 * R1 == R10 value to pass to saver
31 * R2 == R12 value to pass to saver
32 * R3 == pointer to filename to save to
33 * R4 == filetype of file to save
35 * On exit: May return an error
37 * Use: Calls a generalised saver routine to write data to a file.
40 extern routine xsave_save;
42 /* --- xsave_send --- *
44 * On entry: R0 == pointer to saver routine
45 * R1 == R10 value to pass to saver
46 * R2 == R12 value to pass to saver
48 * On exit: R0 == pointer to block to send
50 * CS if this is the last block, else CC
53 * Use: Calls a generalised saver routine to write data to another
54 * application, using RAM transfer. Note that you must call
55 * this routine from your send entry point throughout the
59 extern routine xsave_send;
61 /* --- xsave_done --- *
67 * Use: Tidies up after a successful save job.
70 extern routine xsave_done;
72 /* --- xsave_failed --- *
74 * On entry: R0 == pointer to error block
78 * Use: Tidies up a RAM transfer after an error.
81 extern routine xsave_failed;
83 /* --- xsave_byte --- *
85 * On entry: R0 == byte to write in lowest 8 bits
87 * On exit: May return an error
89 * Use: Writes a single byte to the current output.
92 extern routine xsave_byte;
94 /* --- xsave_word --- *
96 * On entry: R0 == word to write
98 * On exit: May return an error
100 * Use: Writes a single word to the current output.
103 extern routine xsave_word;
105 /* --- xsave_string --- *
107 * On entry: R0 == pointer to a control-terminated string
109 * On exit: May return an error
111 * Use: Writes a control-terminated string to the current output.
112 * The string is null terminated in the output file.
115 extern routine xsave_string;
117 /* --- xsave_block --- *
119 * On entry: R0 == pointer to buffer to write
120 * R1 == size of buffer to write
122 * On exit: May return an error
124 * Use: Writes out a block of data. Data is buffered, so this is
125 * fairly quick for reading small objects. Large data blocks
126 * are sent directly to avoid buffering overhead.
129 extern routine xsave_block;
131 /*----- That's all, folks -------------------------------------------------*/