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.31 Bindings for v_opnwkTOS C: void v_opnwk ( int16_t *work_in, int16_t *handle, int16_t
*work_out );
Binding:
void v_opnwk (int16_t *work_in, int16_t *handle,
int16_t *work_out)
{
intin[0..15] = work_in[0..15];
contrl[0] = 1;
contrl[1] = 0;
contrl[3] = 16;
contrl[6] = 0;
vdi ();
*handle = contrl[6];
work_out[0..44] = intout[0..44];
work_out[45..56] = ptsout[0..11];
}
GEM-Arrays:
Address Element Contentscontrl contrl[0] 1 # Function opcode
contrl+2 contrl[1] 0 # Entry in ptsincontrl+4 contrl[2] 6 # Entry in ptsoutcontrl+6 contrl[3] 16 # Entry in intincontrl+8 contrl[4] 45 # Entry in intoutcontrl+12 contrl[6] handle
intin intin[0..15] work_in[0..15]
intout intout[0..44] work_out[0..44]
ptsout ptsout[0..11] work_out[45..56]
Note: The specified binding is valid for use under NVDI.
With printer drivers some special features have to be
taken into account: First of all, with matrix printers the maximum resolution can be specified, as follows:
ptsin[0] = Maximum resolution in X-direction
ptsin[1] = Maximum resolution in Y-direction
contrl[1] = 1
In addition, the address of the internal buffer for the
Atari SLM laser page-printers can be obtained: contrl[0] = High word, and
contrl[1] = Low word of the buffer address
See Also: v_opnwkGDOSGDOS drivers