
[Description]
Reads characters in the specified screen area to the memory.
Specify screen area to read as left-upper point of screen (Home
position) is (1,1). The first character is read at the start point
(left-upper position), and continuously reads rightward, jumps to the
next line at the right end, the last character is read at the right-
lower position. The required byte size to read is calculated by
"mmc_textsize()" function. Character code and attribute are stored
by internal format. The structure of output buffer is as follows.
+----------------------------+
0 │ Column size │
-----------------------------+
2 │ Line size │
+----------------------------+
4 │ 1st character - code │ --+
+----------------------------+ +--- data for one character
6 │ 1st character - attribute │ --+
+----------------------------+
:
+----------------------------+
m │ n-th character - code │
+----------------------------+
m+2 │ n-th character - attribute │
+----------------------------+
If the specified area overruns the screen like below, SPACE character
and WHITE attribute is stored in the overruned region and "Warning"
is returned as result.
+---------------------------------+
│(1,1) │
│ │
│ screen │
│ │ specified area
│ +---------------------------+
│ │(x1,y1) │//////////│
│ │ │//////////│
│ │ │//////////│
│ │ (80,30)│//////////│
+----------------│----------------+//////////│
│///////////////////////////│
│////////////////////(x2,y2)│
+---------------------------+
If the start position is at the right-half of double-sized character,
only lower byte of the character code is read. If the end position
is at the left-half of double-sized character, only upper byte of
the character code is read. In these case, operation is done
successfully.