osword calls In all OsWord calls, X and Y point to the control block for the call. A=&00 (0) Read line from input A=&0B (11) Read Palette call The physical colour associated with the logical colours may be read using this call. On entry the logical colour is placed at XY+0 in the control block. The call returns the following information: XY+0 Logical colour 1 Physical colour 2 Red component 3 Green component 4 Blue component If the physical colour returned is 0 to 15, the logical colour is set to that physical colour. If it is 16 then the logical colour is the r,g,b mix returned and both flash colours are the same. If it is 17 then the first flash colour is the r,g,b mix returned, the second flash colour is not returned. This call cannot tell you the border colour or the cursor colours. A=&0C (12) Write palette call The logical colour of each physical colour can be set with this call XY+0 Logical colour (l) 1 Physical colour (p) 2 Red component (r) 3 Green componet (g) 4 Blue component (b) The action of the call is different depending on the physical colour supplied: p=0..15 Logical colour = physical colour, r,g,b ignored p=16 Sets both flash colours for l to physical colour r,g,b p=17 Sets first flash colour for logical colour l to r,g,b p=18 Sets second flash colour for logical colour l to r,g,b p=19..23 Undefined p=24 Sets border colour to r,g,b, l is ignored p=25 Sets logical colour l (1..3) of cursor to r,g,b Adding 128 to the physical colour p sets the supremacy bit used when mixing with an external video source. A=&0D (13) Read Graphics Cursor Positions A=&0E (14) Read CMOS clock This OsWord provides three different ways of reading the real time clock. The function is selected by the value at XY+0.