
------------------------------------------------------------------------------
1.23 Put text data into VRAM. <Main>
------------------------------------------------------------------------------
[Name]
crt_puttextimg
[Syntax]
#include <crt.h>
int crt_puttextimg( unsigned int y1, unsigned int len x1,
unsigned int y2, unsigned int len x2,
unsigned long *buf, unsigned int op ) ;
[Arguments]
y1 Left,upper position of the area where characters are put.
x1 Left,lower position of the area where characters are put.
y2 Right,lower position of the area where characters are put.
x2 Right,upper position of the area where characters are put.
buf Area that characters data are stored.
op The way to put characters or attributes into VRAM.
[Return]
Returns zero when terminated normally, not zero when error, i.e.
specified coordinates is not correct, is occurred.
[Description]
Puts character codes on the screen, with their attribute.
This function is used with the function "crt_gettextimg" to back up
or restore the text image on the screen.
y1,x1 is top,left, y2,x2 is bottom,right position of the area into
where characters are put. (The top of left side shows raw-1, and
column-1.) This position specification is same as "crt_gettextimg"
function.
Character codes and their attributes are read out from "buf" where is
regarded that the data, got by "crt_gettextimg" function, exist. The
data, got by "crt_gettextimg" function, is put on the screen usually
but it is also possible to put originally prepared data if they have
the same type as the data, got by "crt_gettextimg" function. It is
possible to put the data, got by "crt_gettextimg" function, into the
different area from where they are got, if the size of the
rectangular area is the same.
Put data is selected from character codes or attributes or both of
them by "op" as follows.
op Put Data
-------+-------------------------------
0 Character codes and attributes
1 Character codes
2 Attributes