Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File7.10.32 Changes in PC-GEM TOS From PC-GEM/3 onwards the work_in field of v_opnwk was extended, so that one could still undertake some driver settings at runtime. The following information however is not compatible to Atari GEM or to NVDI. The following apply: Element Meaning work_in[11] In the lower value byte the output is specified more exactly. Output is to: 0 = File 1 = Serial port 2 = Parallel port 3 = Device-specific (direct) 255 = Default port In the higher value byte the page size is specified: 0 = Letter size ( 8.50 * 11.00 inch) 5 = Half size ( 8.50 * 5.50 inch) 10 = B5 size (18.20 * 25.00 cm) 20 = Letter size ( 8.50 * 11.00 inch) 30 = A4 size (21.00 * 29.70 cm) 40 = Legal size ( 8.50 * 14.00 inch) 50 = Double size (11.00 * 17.00 inch) 55 = Broadsheet (14.00 * 11.00 inch) 255 = Benutzerspezifiziert (work_in[101,102]) work_in[12] Output port or filename ... ... work_in[100] work_in[101] Page width in 1/100 inch work_in[102] Page height in 1/100 inch work_out[14] Has the value 11 if escapement text is available work_out[24] Has the value 1 if escapement text is the only available text on the output device, or otherwise the value 10 work_out[44] A value of -1 means that the output device can output in landscape format without the application having to rotate the graphic itself. The OUTPUT program of PC-GEM however takes on the rotation itself, as this option was not yet available in older GEM versions. Note: If work_in[11] has the value 1 or 2, then work_in[12] must be set to the port number (LPT1 = 0, LPT2 = 1, COM1 = 0, etc.). On the other hand if work_in[11] has the value 0, then the name of the file which is to be written must be contained in work_in[12] onwards; this will be written character by character (16-bit WORDS) and must be NULL-terminated. See Also: Control functions v_opnwk