1.4 BG/text/video type order

About terminology
BG… The indicatory plainness which is not the sprite picture. Bit map and the character picture are included.
Character picture… Text indication is included. The BG picture which depends on the character cord/code and is referred to.
Text screen… The BG picture which is used in order to indicate the letter of especially BASIC in the character picture. It is possible to appoint in SCREEN order. /
Bit map picture… BG picture of dot structure. The picture of 256 color 32768 colors exists. As for 256 colors, the picture which is appointed due to the color index by the pallet. As for 32768 colors the picture which appoints 15 bit RGB color directly.
1 axial rotary picture… In the rotary BG picture the Z axis bit map or the character picture which turns to standard
3 axial rotary picture… In the rotary BG picture X, Y, the Z axis the character picture which turns to standard
With this BASIC, one of the character pictures, you use the text screen with the purpose which indicates the especially text. Because of this, as for most orders which can be used in the character picture, it can use for also the text screen. It allots the text to which character picture, it appoints with parameter of SCREEN order. For example, also it is possible to replace the font of the text in PUTCHR order, to modify the RGB color of the text in PALETTE order. However, these setting return to the state of standard setting of the original system in SCREEN order.

ACTIVE direct executive order indirect executive order
Function
Setting of default number of default logical BG
Prescribed form
ACTIVE<>
Example of use
ACTIVE 0
ACTIVE (A AND 3) + 4
Parameter
<> … Numerical system of fixed point type. The range of effective numerical value depends on the picture mode which is set by SCREEN order, (it truncates the decimal part entirely).
Operational details
<> In case of 0~ 2
When the occasion where order, and the function which read and write the bit map picture which is listed next are used, logic BG is abbreviated, bit map what it is set in this order <> is applied.
.CIRCLE order, LINE order, GCOPY order, PSET order, PAINT order, KPRINT order and POINT function
<> In case of 4~ 8
When the occasion where order, and the function which read and write the character picture which is listed next are used, logic BG is abbreviated, character what it is set in this order <> is applied.
.CCOPY order, PUTCHR order, SETCHR order and READCHR$ function

<> In case of 10~
<> When they are 10 or more, it becomes the object of the texture operation of registering in SETTEX order. <> With as for correspondence of texture ID,
<>+ 10= <>
So it is displayed. Immediately after texture is selected, the drawing territory becomes same as texture size. In addition, texture is undefined when and, when the texture which becomes the object in such as SCREEN order goes out, Undefined texture occurs. Because the texture which is set to the occasion where order, and the function which read and write the next bit map picture are used, in this order becomes the object of operation, as for texture it is necessary to be defined beforehand with SETTEX. Furthermore, color number of texture must be 256 colors or 32768 colors.
.CIRCLE order, LINE order, GCOPY order, PSET order, PAINT order, KPRINT order, CLS order and POINT function
As for appointment of the bit map picture and the text screen which include texture, because it is managed respectively individually, there are no times when on the one hand appointment influences on the other hand. However, in the following order which is in common to the character picture and the bit map picture, it appointed lastly, <> but it becomes effective.
.CLS ACTIVE order, MOSAIC ACTIVE order and DISPLAY ACTIVE order
With ROTCENTER, ROTOVER, ROTPOS, ROTATE and ROTZOOM of revolution BG order, the logic BG8 which is appointed in ACTIVE order or BG9 becomes the object of order.
<> Type of number picture
0 bit map pictures 0
1 bit map pictures 1
2 bit map rotary pictures 0
4 character pictures 0
5 character pictures 1
6 character pictures 2
7 character pictures 3
8 rotary pictures 0
9 rotary pictures 1
10 sprite polygon surface

CCOPY direct executive order indirect executive order
Function
Transfer of the graphics data of the rectangular territory which deals with the character picture
Prescribed form
(1) CCOPYTO<><>
(2) CCOPYTO<><>
(3) CCOPYTO<><>
Transfer original block definition prescribed form
[<>] (<><>) - (<><>)
Ahead transferring coordinate designated prescribed form
[<>] (<><>)
Example of use
CCOPY (0 and 0) - (99 and 99) TO (100 and 0)
CCOPY A$ TO 1, (0 and 100)
CCOPY 0, (0 and 0) - (20 and 7) TO V$
Parameter
<> … Numerical system of fixed point type (it truncates the decimal part entirely). The range of effective numerical value depends on the picture mode which is set by SCREEN order.
<><><><> Coordinate of 2 points which become opposite angle of… transfer original rectangular territories is appointed. Numerical system of fixed point type.
<><> Coordinate of 1 points of the rectangular territory ahead… transferring (correspondence) it appoints to transfer original starting point. Numerical system of fixed point type
<> … Concerning the form in the character string it mentions later.
<> … Name of variable of character string type is described. Designated possible name order is sly in name attaching code of variable.
Operational details
The prescribed form (1) reproduces the graphics data of the character picture which is appointed in the other territory.
The prescribed form (2) transfers the graphics data of letter in-line type to the character picture.
The prescribed form (3) takes in to variable with the graphics data of the rectangular territory which is appointed as a character string.
<> When it is abbreviated, logic BG of the character picture which is appointed lastly in ACTIVE order is used.

With the prescribed form (1), it becomes following kind of operation. (Transfer original block definition) with it reproduces & transfers in the territory where the picture <> of the rectangular territory which is appointed is appointed, with. Relationship in the coordinate due to both appointments has reached the point where correspond with the coordinate of starting point of the transfer original rectangular territory and ahead transferring the coordinate which is appointed to the territory. However transfer direction of the graphics data from the left upper point of the transfer original territory becomes fixing with transfer at a time of the side 1 lines regardless of the position relationship in the starting point coordinate which is appointed.
With the prescribed form (2), as for the transfer origin the character string data (the data of the binary type which keeps the picture) with, as for the coordinate which transfer first is appointed, it becomes fixing always in the left superior position of the territory. Concerning other transfer directions and the like, it corresponds to the prescribed form (1).
With the prescribed form (3), the tip of transferring becomes letter variable, with the character string data of binary type houses the transfer original graphics data in variable. Concerning other transfer directions and the like, it corresponds to the prescribed form (1).

. Restriction in coordinate
As for the coordinate value which is appointed, it is adjusted <> within size object (as for the unit the character). In addition, you adjust coordinate, <> by the fact that surplus of maximum character width is taken, (as for this is) in order to cope with the scroll of the character picture.
. Structure in the binary character string which keeps the picture
It appoints to the transfer origin <> and transfer it appoints first <> , it becomes the data of the following type.
The 1st byte character code becomes the number of characters of breadth of the graphics data (1~ 128).
The 2nd byte character code becomes the number of characters of vertical width of the graphics data (1~ 128).
3rd byte pattern name data. Vis-a-vis 1 characters 2 bytes necessity. The upper byte, following to low byte order, being shortest, it becomes length of 4 bytes.
The pattern name data concerning details, please refer to PUTCHR order GETCHR function.

CIRCLE direct executive order indirect executive order
Function
Circle is drawn in the bit map picture
Prescribed form
(1) CIRCLE (&ltX coordinate >, &ltY coordinate >),<> [, [<>] [, F]]
(2) CIRCLE (&ltX coordinate >, &ltY coordinate >), (&ltX direction radius >, &ltY direction radius >), [, [<>] [, F]]
Example of use
CIRCLE (100 and 100), 10 and 15
CIRCLE (X, Y), (RX and RY), C, F
Parameter
&ltX coordinate >, &ltY coordinate > numerical system of… fixed point types.
<>&ltX direction radius >, &ltY direction radius > numerical system of… fixed point types.
<> … Numerical system of fixed point type. The range of effective numerical value depends on active color number in the bit map picture which is drawn.
F switch… it appointed inside the circle which is drawn <> it paints.
Operational details
&ltX coordinate > with &ltY coordinate >, the coordinate which is center of circle (the dot unit) it appoints. As for coordinate the position where in initial condition it hits on the left top of the picture becomes standard (0 and 0).
<> Distance to the drawing point (the dot unit) it appoints from central coordinate. In case in ellipse it appoints side (X direction) with length (Y direction) concerning respectively.
<> When it abbreviates, it becomes the color which is set in COLOR order.
In addition, when” F” is appointed to end of order, it appointed inside the circle which is drawn <> it paints.
When the bit map picture plural it is the picture mode which exists, it is drawn to the bit map picture which is set to default in ACTIVE order.

1-4

1.4 BG/text/video type order

About terminology
BG… The indicatory plainness which is not the sprite picture. Bit map and the character picture are included.
Character picture… Text indication is included. The BG picture which depends on the character cord/code and is referred to.
Text screen… The BG picture which is used in order to indicate the letter of especially BASIC in the character picture. It is possible to appoint in SCREEN order. /
Bit map picture… BG picture of dot structure. The picture of 256 color 32768 colors exists. As for 256 colors, the picture which is appointed due to the color index by the pallet. As for 32768 colors the picture which appoints 15 bit RGB color directly.
1 axial rotary picture… In the rotary BG picture the Z axis bit map or the character picture which turns to standard
3 axial rotary picture… In the rotary BG picture X, Y, the Z axis the character picture which turns to standard
With this BASIC, one of the character pictures, you use the text screen with the purpose which indicates the especially text. Because of this, as for most orders which can be used in the character picture, it can use for also the text screen. It allots the text to which character picture, it appoints with parameter of SCREEN order. For example, also it is possible to replace the font of the text in PUTCHR order, to modify the RGB color of the text in PALETTE order. However, these setting return to the state of standard setting of the original system in SCREEN order.

ACTIVE direct executive order indirect executive order
Function
Setting of default number of default logical BG
Prescribed form
ACTIVE<>
Example of use
ACTIVE 0
ACTIVE (A AND 3) + 4
Parameter
<> … Numerical system of fixed point type. The range of effective numerical value depends on the picture mode which is set by SCREEN order, (it truncates the decimal part entirely).
Operational details
<> In case of 0~ 2
When the occasion where order, and the function which read and write the bit map picture which is listed next are used, logic BG is abbreviated, bit map what it is set in this order <> is applied.
.CIRCLE order, LINE order, GCOPY order, PSET order, PAINT order, KPRINT order and POINT function
<> In case of 4~ 8
When the occasion where order, and the function which read and write the character picture which is listed next are used, logic BG is abbreviated, character what it is set in this order <> is applied.
.CCOPY order, PUTCHR order, SETCHR order and READCHR$ function

<> In case of 10~
<> When they are 10 or more, it becomes the object of the texture operation of registering in SETTEX order. <> With as for correspondence of texture ID,
<>+ 10= <>
So it is displayed. Immediately after texture is selected, the drawing territory becomes same as texture size. In addition, texture is undefined when and, when the texture which becomes the object in such as SCREEN order goes out, Undefined texture occurs. Because the texture which is set to the occasion where order, and the function which read and write the next bit map picture are used, in this order becomes the object of operation, as for texture it is necessary to be defined beforehand with SETTEX. Furthermore, color number of texture must be 256 colors or 32768 colors.
.CIRCLE order, LINE order, GCOPY order, PSET order, PAINT order, KPRINT order, CLS order and POINT function
As for appointment of the bit map picture and the text screen which include texture, because it is managed respectively individually, there are no times when on the one hand appointment influences on the other hand. However, in the following order which is in common to the character picture and the bit map picture, it appointed lastly, <> but it becomes effective.
.CLS ACTIVE order, MOSAIC ACTIVE order and DISPLAY ACTIVE order
With ROTCENTER, ROTOVER, ROTPOS, ROTATE and ROTZOOM of revolution BG order, the logic BG8 which is appointed in ACTIVE order or BG9 becomes the object of order.
<> Type of number picture
0 bit map pictures 0
1 bit map pictures 1
2 bit map rotary pictures 0
4 character pictures 0
5 character pictures 1
6 character pictures 2
7 character pictures 3
8 rotary pictures 0
9 rotary pictures 1
10 sprite polygon surface

CCOPY direct executive order indirect executive order
Function
Transfer of the graphics data of the rectangular territory which deals with the character picture
Prescribed form
(1) CCOPYTO<><>
(2) CCOPYTO<><>
(3) CCOPYTO<><>
Transfer original block definition prescribed form
[<>] (<><>) - (<><>)
Ahead transferring coordinate designated prescribed form
[<>] (<><>)
Example of use
CCOPY (0 and 0) - (99 and 99) TO (100 and 0)
CCOPY A$ TO 1, (0 and 100)
CCOPY 0, (0 and 0) - (20 and 7) TO V$
Parameter
<> … Numerical system of fixed point type (it truncates the decimal part entirely). The range of effective numerical value depends on the picture mode which is set by SCREEN order.
<><><><> Coordinate of 2 points which become opposite angle of… transfer original rectangular territories is appointed. Numerical system of fixed point type.
<><> Coordinate of 1 points of the rectangular territory ahead… transferring (correspondence) it appoints to transfer original starting point. Numerical system of fixed point type
<> … Concerning the form in the character string it mentions later.
<> … Name of variable of character string type is described. Designated possible name order is sly in name attaching code of variable.
Operational details
The prescribed form (1) reproduces the graphics data of the character picture which is appointed in the other territory.
The prescribed form (2) transfers the graphics data of letter in-line type to the character picture.
The prescribed form (3) takes in to variable with the graphics data of the rectangular territory which is appointed as a character string.
<> When it is abbreviated, logic BG of the character picture which is appointed lastly in ACTIVE order is used.

With the prescribed form (1), it becomes following kind of operation. (Transfer original block definition) with it reproduces & transfers in the territory where the picture <> of the rectangular territory which is appointed is appointed, with. Relationship in the coordinate due to both appointments has reached the point where correspond with the coordinate of starting point of the transfer original rectangular territory and ahead transferring the coordinate which is appointed to the territory. However transfer direction of the graphics data from the left upper point of the transfer original territory becomes fixing with transfer at a time of the side 1 lines regardless of the position relationship in the starting point coordinate which is appointed.
With the prescribed form (2), as for the transfer origin the character string data (the data of the binary type which keeps the picture) with, as for the coordinate which transfer first is appointed, it becomes fixing always in the left superior position of the territory. Concerning other transfer directions and the like, it corresponds to the prescribed form (1).
With the prescribed form (3), the tip of transferring becomes letter variable, with the character string data of binary type houses the transfer original graphics data in variable. Concerning other transfer directions and the like, it corresponds to the prescribed form (1).

. Restriction in coordinate
As for the coordinate value which is appointed, it is adjusted <> within size object (as for the unit the character). In addition, you adjust coordinate, <> by the fact that surplus of maximum character width is taken, (as for this is) in order to cope with the scroll of the character picture.
. Structure in the binary character string which keeps the picture
It appoints to the transfer origin <> and transfer it appoints first <> , it becomes the data of the following type.
The 1st byte character code becomes the number of characters of breadth of the graphics data (1~ 128).
The 2nd byte character code becomes the number of characters of vertical width of the graphics data (1~ 128).
3rd byte pattern name data. Vis-a-vis 1 characters 2 bytes necessity. The upper byte, following to low byte order, being shortest, it becomes length of 4 bytes.
The pattern name data concerning details, please refer to PUTCHR order GETCHR function.

CIRCLE direct executive order indirect executive order
Function
Circle is drawn in the bit map picture
Prescribed form
(1) CIRCLE (&ltX coordinate >, &ltY coordinate >),<> [, [<>] [, F]]
(2) CIRCLE (&ltX coordinate >, &ltY coordinate >), (&ltX direction radius >, &ltY direction radius >), [, [<>] [, F]]
Example of use
CIRCLE (100 and 100), 10 and 15
CIRCLE (X, Y), (RX and RY), C, F
Parameter
&ltX coordinate >, &ltY coordinate > numerical system of… fixed point types.
<>&ltX direction radius >, &ltY direction radius > numerical system of… fixed point types.
<> … Numerical system of fixed point type. The range of effective numerical value depends on active color number in the bit map picture which is drawn.
F switch… it appointed inside the circle which is drawn <> it paints.
Operational details
&ltX coordinate > with &ltY coordinate >, the coordinate which is center of circle (the dot unit) it appoints. As for coordinate the position where in initial condition it hits on the left top of the picture becomes standard (0 and 0).
<> Distance to the drawing point (the dot unit) it appoints from central coordinate. In case in ellipse it appoints side (X direction) with length (Y direction) concerning respectively.
<> When it abbreviates, it becomes the color which is set in COLOR order.
In addition, when” F” is appointed to end of order, it appointed inside the circle which is drawn <> it paints.
When the bit map picture plural it is the picture mode which exists, it is drawn to the bit map picture which is set to default in ACTIVE order.

Direct execution instruction indirect execution instruction of CLS
Function
The screen is deleted.
Format
(1)CLS[<˜_—BG>][,<˜_—BG> c]
(2)CLS -1
(3)CLS ACTIVE
Example
CLS
CLS 0, 4, 5
The <˜_—BG>screen for which was specified is deleted for format (1). When all specification is omitted, the screen specified for the text screen is deleted.
All screens except the texture become objects of the deletion for format (2).
Logical BG who set it by the ACTIVE instruction is deleted for format (3).
Parameter
<˜_—BG>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
Operation is detailed.
<˜_—BG>Operation is different as follows depending on the kind of the screen for which was specified.
<˜_—BG>However, for 0~2
. Bit map screen
It buries it by the background color for which it is specified in the area where the clipping was done by the WINDOW instruction by the COLOR instruction.
<˜_—BG>However, for 4~8
. Character screen
The entire screen is buried in code (&H0000) of word 0. The text screen (screen allocated on the character screen for the text display) is buried in the area specified by the WIDTH instruction by blank character (&H20).
<˜_—BG>However, for 10~
The background color for which the entire texture area is specified by the COLOR instruction is buried. <˜_—BG>The texture registered by the SETTEX instruction becomes the object of the operation in case of ten or more. <˜_—BG>Texture ID correspondence ..solving.. :.
<ƒeƒNƒXƒ`ƒƒID>+ 10= <˜_—BG>
It becomes it. When ACTIVE is specified, the screen specified by the ACTIVE instruction executed at the end becomes an object.

Direct execution instruction indirect execution instruction of COLOR
Function
The color etc. of the display color and the screen in the surrounding are set.
Format
COLOR[<ƒeƒLƒXƒg•\Ž¦F>][,[<•`‰æF>][,[<”wŒiF>][,<Žü•ÓF>]]]
Example
COLOR 5
COLOR A,, 15- A
Parameter
<ƒeƒLƒXƒg•\Ž¦F>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~15.
<•`‰æF>, <”wŒiF>c Numerical value type of fixed zero point type. The range of an effective numerical value depends on the number of colors that can be used on the specified bit map screen.
<Žü•ÓF>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~32768. When the color in the surrounding is given by the line color, the character string type is given.
Operation is detailed.
<ƒeƒLƒXƒg•\Ž¦F>The color of the character displayed on and the text screen is specified. The correspondence of a specified value and an actual color is done by setting the text palette.
<•`‰æF>The <”wŒiF>color and the background color when drawing to the bit map screen are specified. The range of effective following numerical values changes depending on the mode of the bit map screen.
At 32768 color mode
The value derived by the following expression is effective. -One is treated as a transparent color.
Specified color value =+ X 32+X 1024 <Ô¬•ª> <—ά•ª> <¬•ª>
The correspondence of a specified numerical value and an actual color is fixed.
At 256 color mode
The palette number to 0~255 is specified. The correspondence of a specified numerical value and an actual color is done by setting the palette. <Žü•ÓF>It peels off and the color in surroundings on , screen is specified. The light color is displayed when the value is specified for a color in the surrounding, and when the character string is specified, the line color of 224 colors (color of each horizontal line from the upper part of the screen) can be specified. The forms of this character string are 224 word character strings of the same faction type as the one used by the PALETTE instruction. Even the specified length is written when not coming up to 224 colors, and when 224 is exceeded, even 224 colors are written. The last byte is disregarded for the odd number.
When 256 color mode/specification of the palette mode both 32768 colors is omitted, it is necessary to give at least one parameter because the setting before is maintained.

Direct execution instruction indirect execution instruction of COLOROFS
Function
The BG screen and the sprite screen are colored.
Format
(1)COLOROFS{ON[,]<˜_—BG>[,<˜_—BG> c]|{OFF[,]<˜_—BG>[,<˜_—BG> c]}
(2)COLOROFS(<R>,<G>,<B>)
Example
Parameter
Logical BG who colors < logic BG>c is specified.
< R >, < G >, and < B > c Numerical value type of fixed zero point type. When it exceeds this by the integer of -255~+255, the range of the value becomes Illegal function call.
Turn on c Coloring to logical BG is made effective.
Turn off c Coloring to logical BG is nullified.
Operation is detailed.
And <˜_—BG>sprite (10) are included.
Format (1) <˜_—BG>effective/invalidates the object coloring. It is possible to specify it by two or more numbers' tying. Existing together is possible ON/OFF. The number specified at the end is given to priority when the same number is specified. When the end of the parameter ends because of turning on or turning off, the presence of <˜_—BG>coloring to all of the object screen mode is specified.
Format (2) colors to the screen specified by format (1).
Attention
A virtual keyboard is influenced, too, when coloring to sprite and, according to circumstances, it disappears.
Example
All screens are Fadoouted.
COLOROFS(0,0,0) ¨ initializes the offset to make sure.
Coloring permission to COLOROFS ON¨ all screens
FOR OFS= 0 TO 255
COLOROFS( -OFS, -OFS, -OFS )
VSYNC
NEXT OFS
<˜_—BG>Coloring to all becomes invalid by the SCREEN instruction, and the color offset becomes (0,0,0), too.

Direct execution instruction indirect execution instruction of DISPLAY
Function
The BG screen display is turned on and off.
Format
DISPLAY{ON[,]<˜_—BG>[,<˜_—BG> c]} | {OFF[,]<˜_—BG>[,<˜_—BG> c]}
Example
DISPLAY OFF 4
The text screen disappears usually. Please push the [F12] key to display it again.
Parameter
<˜_—BG>c BG who turns the display on and off is specified.
Turn on c Coloring to logical BG is made effective.
Turn off c Coloring to logical BG is nullified.
Operation is detailed.
Object <˜_—BG>display is turned on and off. Two or more numbers tie and it comes as master-apprentice. Existing together to turning off is possible to turn on. The number specified at the end is given to priority when the same number is specified. <˜_—BG>The display ..specification with ACTIVE that ACTIVE is specified for Cawa ..drinking.. dividing.. is turned on and off <˜_—BG>(For interchangeability with CLS).
Parameter
Missing ..ON.. turning off of all of object screen mode when it ends because of turning on or turning off after Sai ..drinking.. <˜_—BG>
Supplementation
Especially, the drawing speed improves if the rotation screen etc. are DISPLAY OFFed temporarily.
Example
The display of BG all DISPLAY OFF¨ is prohibited.
All become <˜_—BG>displays ON by the SCREEN instruction (It is the same as DISPLAY ON).
Attention
It is not possible to describe it as follows. Please delimit it to another instruction.
DISPLAY OFF, ON 3
Reference
ACTIVE

Direct execution instruction indirect execution instruction of GCOPY
Function
Transmission of rectangular area image data intended for bit map screen
Format
(1)GCOPY<“]‘—Œ³—̈æŽw’è>TO<“]‘—æÀ•WŽw’è>
(2)GCOPY<•¶Žš—ñŽ®>TO<“]‘—æÀ•WŽw’è>
(3)GCOPY<“]‘—Œ³—̈æŽw’è>TO<•¶Žš•Ï”>
Format of forwarding former area definition
<˜_—BG>,](<Žn“_XÀ•W>,<Žn“_YÀ•W>)-(,)
Format of coordinates specification at forwarding destination
[<˜_—BG>,](<“]‘—æXÀ•W>,<“]‘—æYÀ•W>)
Example
GCOPY 0,( 0, 0 )-( 99, 99 ) TO 1,( 100, 0 )
GCOPY A$ TO 1,( 0, 100 )
GCOPY ( 0, 0 )-( 20, 7 ) TO V$
Parameter
<˜_—BG>c Numerical value type of fixed zero point type. The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<Žn“_XÀ•W>,<Žn“_YÀ•W>,,c Coordinates of two points that become corners in a rectangular area in the forwarding origin are specified. Numerical value type of fixed zero point type.
<“]‘—æXÀ•W>,<“]‘—æYÀ•W>c Coordinates of one point of a rectangular area in the forwarding destination (Correspond to the starting point in the forwarding origin) are specified. Numerical value type of fixed zero point type
<•¶Žš—ñŽ®>c The shape of the character string is described later.
<•¶Žš•Ï”>c The name of the variable of the character string type is described. The name that can be specified is order in the the name of the variable putting rule.
Operation is detailed.
Format (1) copies the image data of the specified bit map screen in other areas.
Format (2) transmits the image data of the character string form to the bit map screen.
The image data of the specified rectangular area is made a character string and format (3) is taken into the variable.
<˜_—BG>However, logical BG of the bit map specified by the ACTIVE instruction at the end is handled when omitted.

<˜_—BG>However, for 0~2
In format (1), it becomes the following operation. (forwarding former area definition)The image of a rectangular area where was specified is copied and forwarded to the area where was <“]‘—æÀ•WŽw’è>specified. Coordinates in the starting point in a rectangular area in the forwarding origin and coordinates specified for the area at the forwarding destination correspond to the relation by the specification of both parties between coordinates. However, the direction where the image data is forwarded is fixed from the point on the left of a forwarding former area regardless of the position of specified the starting point coordinates because of forwarding one line in side.
In format (2), in the forwarding origin, coordinates specified by character-string data (data of the binary form that maintains the image) at the forwarding destination always become left higher ranks of the area with fixation. It applies to format (1) about other directions etc. of forwarding.
In format (3), the forwarding destination becomes a character variable, and the image data of the forwarding origin is stored by the character-string data of the binary form in the variable. It applies to format (1) about other directions etc. of forwarding.

. Limitation of coordinates
Y coordinates of ..X coordinates.. 0~511 ..specified coordinate value.. are adjusted within the range of 0~255(The unit is a dot). Moreover, coordinates are adjusted by taking the surplus of 512 and 256 respectively (The purpose of this is to deal with the scroll of the bit map screen).

<˜_—BG>However, for 10~
<˜_—BG>However, the texture registered by the SETTEX instruction becomes the object of the operation in case of ten or more. <˜_—BG>Texture ID correspondence ..solving.. :.
<ƒeƒNƒXƒ`ƒƒID>+ 10= <˜_—BG>
Is shown.
Because format (1) cannot be used by the texture, it is necessary to copy it through the character string once. Format (2) and format (3) <˜_—BG>apply in the case of 0~2.

. Limitation of coordinates
The range of the coordinate value includes a negative value when forwarding it from the character string to the texture and there is no limitation. When the size of the character string is larger than that of the texture, it is copied only to the part where the texture exists. For instance, when 100X 100 dot and the texture size are 64X 64 dots, the size of a rectangular area of character string A$ :.
GCOPY A$ TO 10,( -10, -20 )
It peels off and data from the 20th dot on the tenth dot from the left end of a rectangular area of , character string is copied to the texture. The specified coordinate value is limited in the size of the texture specified by the SETTEX instruction when forwarding it from the texture to the character string. For instance, when the size of the texture is 64X 64 dot, the range of specification of coordinates becomes (0,0) - (63,63).

Structure of binary character string that maintains image

Become an object and for <˜_—BG>256 colors (palette color)
To <•¶Žš—ñŽ®>specify it as soon as specifying it under forwarding at the forwarding destination, it <•¶Žš•Ï”>becomes the data of the following form.
1~2 byte (character) character-code is number (1~512) of dots of widths of the image data.
3~4 byte (character) character-code is number (1~256) of dots of width of length of the image data.
Five byte (character) color data (data of palette number) from now on. One character corresponds to one dot. It becomes Chou shortest ..five bytes (character).. ..drinking...

Become an object and for <˜_—BG>32768 colors (RGB color)
To <•¶Žš—ñŽ®>specify it as soon as specifying it under forwarding at the forwarding destination, it <•¶Žš•Ï”>becomes the data of the following form.
1~2 byte (character) character-code is number (1~512) of dots of widths of the image data. The order of high-ranking byte (the first character) and subordinate position byte (the second character)
3~4 byte (character) character-code is number (1~256) of dots of width of length of the image data. The order of high-ranking byte (the first character) and subordinate position byte (the second character)
Five byte (character) color data (RGB data) from now on. Two bytes (character) are necessary and arrange it for one dot in order of a high-ranking byte (the first character) and the subordinate position byte (the second character). It becomes Chou shortest ..six bytes (character).. ..drinking...

The structure of RGB data is the same as the form treated by RGB function.
Element of &B000000000011111 red
Element of &B000001111100000 green
Element of &B111110000000000 blue
However, the display color most significant bit (bit 15) should be "1. "In a word, a black dot :.
RGB( 0, 0, 0 )+ &H8000 ( = &H 8000 )
It does and it specifies it solving.
When the dot of the object is displayed as a transparent color, the entire RGB data is specified for 0.

Direct execution instruction indirect execution instruction of KLOAD
Function
The display of the Chinese character is enabled.
Format
KLOAD[ON[,{1|2}]]
KLOAD OFF
Example
The display of the feeling of KLOAD¨ the first level and the second level is enabled.
KLOAD ON ¨ "
KLOAD ON, 2 ¨ "
KLOAD ON and 1¨ first level are enabled to be displayed.
It makes to cannot the use of the KLOAD OFF¨ Chinese character, and the free area is increased.
Parameter
Turn on c The use of the Chinese character is enabled.
Turn off c The use of the Chinese character is prohibited. When the parameter is omitted, the same operation as turning on is done.
1c The display of the Chinese character of the first level is enabled.
2c The display of the Chinese character of the first level and the second level is enabled.
Operation is detailed.
The display of the Chinese character is enabled reading the Chinese character font from CD when turning on is specified whether to omit the parameter. When the Chinese character font of the same size has already been read, it doesn't read again. The Chinese character font consumes the following memory from the program area of BASIC (One block is 256 bytes).
722 blocks when only the first level is read
991 blocks when the 1st level and the 2nd level are read
When the Chinese character font cannot be read when the program code is very large etc. , "Out of memory" is generated.
The memory that the Chinese character font uses is opened when turning off is specified for the parameter and use is enabled as an user's area and a program area.
When you execute the KLOAD instruction for either turning on and turning off
CLEAR 0, 256, 256
The operation of the equal is done.
Moreover, we will usually recommend doing at the head etc. of the program before the CLEAR instruction from the following respect.
¥The content of all variables is initialized.
¥The character variable is initialized in the null character string of 0 in length and a numeric variable is initialized by 0.
¥All declared the array variables return to the state of the undeclaration.
¥When the file that has been opened exists, everything is closed.
¥All stacks of the FOR~NEXT instruction and the GOSUB instruction, etc. are initialized.
¥The user's area becomes 0 blocks.
¥<ƒtƒ@ƒCƒ‹—̈æ 1 > <ƒtƒ@ƒCƒ‹—̈æ 2 >Both become 256 blocks reach.

Direct execution instruction indirect execution instruction of KPRINT
Function
Display of Chinese character to bit map screen
Format
(1)KPRINT[<•\Ž¦ˆÊ’u>][FIX][<•¶Žš—ñŽ®>][;][,<•¶ŽšF>][,][,<”wŒiF>]
(2)KPRINT[<•\Ž¦ˆÊ’u>]
(3)KPRINT PALETTE[<˜_—BG>],<ŠJŽnPALETTE”Ô†>,<Šî€F>
<•\Ž¦ˆÊ’u>B is the following form. drink
(<Žn“_XÀ•W><Žn“_YÀ•W>[ > < Y direction character spacing of < X direction character spacing > <”¼ŠpˆÊ’u>])
Example
The position (When the screen rotates, and it doesn't reverse) where the Chinese character, that is, KPRINT(10,10) ¨ next time is displayed is specified on the left of the screen for the position of (10,10).
It changes to the SCREEN 0:KLOAD ON¨32768 color mode.
KPRINT "Em-size normal-width";, RGB(31,0,0) ¨ displays the Chinese character by a red character and doesn't change line.
It changes to the SCREEN 1:KLOAD ON¨256 color palette mode.
A red palette is made in the 100th (KPRINT PALETTE 0,100 and RGB(31,0,0) ¨ palette) for the Chinese character display.
KPRINT "Em-size normal-width" and 100 and 12¨ display the character of 12X 12 dot with this palette.
Parameter
<Žn“_XÀ•W>,<Žn“_YÀ•W>c Numerical value type of fixed zero point type.
,c Numerical value type of fixed zero point type. -Integer of 128~+127
<”¼ŠpˆÊ’u>c Numerical value type of fixed zero point type. -Integer of 128~+127
<•¶ŽšF>,<”wŒiF>c Numerical value type of fixed zero point type. The range of an effective integer depends on the number of colors that can be used on the bit map screen where it draws.
c Numerical value type of fixed zero point type. Integer between 8~16.
<˜_—BG>c Numerical value type of fixed zero point type. Bit map screen (0,1,2) or sprite (10) becomes an object.
<ŠJŽnPALETTE”Ô†>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~253.
<Šî€F>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~32768.
FIX c 8X 8 font used on the text screen is used and displayed.
; c The character is displayed without changing line when the beginning coordinates are omitted by the following KPRINT instruction.
<•¶Žš—ñŽ®>c It displays it to the bit map screen for which the SHIFT JIS character-code or one byte character-code was specified with ACTIVE.
Operation is detailed.
In the following explanations,
Font used for 8X 8 font text display
One-byte character included in 8X 16 font Chinese character font
The Chinese character and the figure character of 16X 16 font em-size are shown.
First of all, it is necessary to read the font data from CD by the KLOAD instruction to display the Chinese character with KPRINT. In the state that the Chinese character data is not read, only 8X 8 font to accompany the following "FIX" options can be displayed. "Illegal function call" happens when em-size excluding this and the character of normal-width are displayed with the data of the Chinese character font not read.
Format (1) is <Žn“_XÀ•W> <Žn“_YÀ•W> <•¶Žš—ñŽ®>displayed from specified coordinates to the bit map screen for which the SHIFT JIS character-code or one byte character-code toward the right was specified with ACTIVE.
<•¶ŽšF>However, it draws based on the color in case of Sa Sadamu.
<•¶ŽšF>However, it becomes a bit map drawing color set by the second parameter of the COLOR instruction when omitted.
<”wŒiF>The background color of character can be specified. It becomes the background color of the bit map set to be omitted by the third parameter of the COLOR instruction. Transparent color (-1) can be used for the background color. However, <•¶ŽšF>transparent color (-1) cannot be used. "Illegal function call" happens when using it.
It displays it by using 8X 8 font used for one byte character (one-byte character) on the text screen when "FIX" is specified (The pattern of the shadow is not displayed).
It displays it by using 8X 16 byte when "FIX" is omitted. Moreover, it peels off and the size of the display character is specified. Only the size in the vertical direction is influenced from the one-byte character, and 8X 8 font is not influenced. The size specified the omission at the end is specified.
< X direction character spacing > specifies the intervals a horizontal character and between characters. The value specified the omission at the end is used. Moreover, < Y direction character spacing > specifies the interval between top and bottom characters when changing line. The value specified the omission at the end is used.
<”¼ŠpˆÊ’u>It peels off and the position to 2 byte character where one byte character is displayed is specified. The value specified the omission at the end is used.

About the normal-width position of .KPRINT
It is done that it makes it to a positional putting of the one-byte character of (8X 8dot Font) together when the FIX option is used.
? ?
Em-size character one-byte character em-size character one-byte character
At default value =- <”¼ŠpˆÊ’u>eight

Character string type, End. The character is displayed without changing line when the beginning coordinates are omitted by the following KPRINT instruction when "is specified. When the character string type is omitted, it is treated as a null character string. " ; When "is omitted, the starting position when the beginning coordinates are omitted by the following KPRINT instruction is as follows.
<È—ªŽž‚ÌXÀ•W>It was specified by the last KPRINT instruction. <Žn“_XÀ•W>
<È—ªŽž‚ÌYÀ•W>Last..instruction..specify..direction..character spacing. <Žn“_YÀ•W>
When CHR$(13) is included in the character string, it becomes it if the starting position of X coordinates of the following character was specified by the last KPRINT instruction. <ŠJŽnXÀ•W>specified ++ When CHR$(10) is included in the character string, the starting position of Y coordinates of the following character .. <ŠJŽnYÀ•W>< Y direction character spacing >.. becomes it because of the last KPRINT instruction.
When the display position is omitted next by the KPRINT instruction, format (2) specifies. <Žn“_XÀ•W> <Žn“_YÀ•W><•\Ž¦ˆÊ’u>However, it changes line by one line like the PRINT sentence when omitted (It is the same as format (1)).
Format (3) makes the color used when the Chinese character is displayed in the bit map screen and the texture of 256 color mode in the palette. <˜_—BG>When the texture specified that is omitted by ACTIVE has been selected, the palette for sprite becomes an object. <ŠJŽnPALETTE”Ô†>The <Šî€F>neutral tints twining made in 3 palettes is written. <ŠJŽnPALETTE”Ô†>The second parameter and format (1) of COLOR instruction risk, give, and the <•¶ŽšF>color of the Chinese character can be given in 256 color mode. Moreover, neutral tints is used for less than Chinese character 16.

Example
The use of the KLOAD¨ Chinese character is enabled.
Logic BG 0 SCREEN 0¨ is made the bit map screen of 32768 color mode.
The drawing color of COLOR and RGB(0,31,0) ¨ bit map screen (color of = character) is made an edge.
KPRINT(10,20) ¨ display position is specified for (10,20).
"The first line" ¨ of KPRINT edge color Chinese character is displayed with 12X 12.
KPRINT "The second line" and RGB(31,31,31) ¨ display a white Chinese character in the following line with 12X 12.

The use of the KLOAD¨ Chinese character is enabled.
Logic BG 0 SCREEN 1¨ is made the bit map screen of 256 color mode.
Neutral tints based on light blue is made in palette number 100~102 of KPRINT PALETTE 0,100 and RGB(0,31,31) logic BG 0 ¨.
KPRINT(10,30) ¨ display position is specified for (10,30).
KPRINT "Testes" and the Chinese character is displayed with 12X 12 by using 100 and 12¨ palette number 100~102.

By the SCREEN instruction
<Žn“_XÀ•W>= 0
<Žn“_YÀ•W>= 0
0 ..< X direction character spacing >=..
One ..< Y direction character spacing >=..
<”¼ŠpˆÊ’u>= 0
= 16
Is initialized.
Reference
KLOAD

Direct execution instruction indirect execution instruction of LINE
Function
It draws to the bit map screen in the straight line or the rectangle.
Format
(1)LINE[(<Žn“_XÀ•W>,<Žn“_YÀ•W>)]-(,)[,]
(2)LINE[<Žn“_XÀ•W>,<Žn“_YÀ•W>]-(,)[,[][,B|BF]]
Example
LINE( 0, 0 )-( 100, 100 )
LINE-( 200, 0 ),,B
LINE( X, Y )-( XX, YY ), C, BF
The straight line is drawn in the area where the clipping was done by WINDOW instruction the bit map screen.
Parameter
<Žn“_XÀ•W>,<Žn“_YÀ•W>,,c Numerical value type of fixed zero point type (All the decimal parts are rounded down).
c Numerical value type of fixed zero point type. The range of an effective numerical value is numerical that can be used on the bit map screen where it draws of the color (All the decimal parts are rounded down).
B and BF c Rectangular drawing and rectangular painting out specification.
Operation is detailed.
Format (1) draws in the straight line that connects two specified points.
Format (2) draws in the rectangle that makes two specified points a corner.
Format (3) <Žn“_YÀ•W> draws from <Žn“_XÀ•W>specified coordinates in the straight line that connects specified coordinates. When coordinates in the starting point are omitted, the straight line is drawn from coordinates where it was drawn at the end by the LINE instruction or the PSET instruction executed before.
Format (2) draws in the rectangle that makes coordinates in the starting point and coordinates of the terminal a corner. When coordinates in the starting point are omitted, it uses it as one point of the corner of coordinates specified for the terminal by the LINE instruction executed before. It draws only in a rectangular outline when "B" is specified for the end, and when "BF" is specified, it is painted out with the color as which a rectangular inside is the same.
Coordinates become standards (0,0) the position that hits the top of the left of initial on the screen, and are which.
Format
However, it draws however according to the color in case of Sa Sadamu. It becomes a color set by the COLOR instruction when omitted. On the bit map screen set to default by the ACTIVE instruction, it is drawn for the screen mode where two or more bit map screens exist.
Reference
PSET, COLOR, ACTIVE

Direct execution instruction indirect execution instruction of MOSAIC
Function
The mosaic is put on the BG screen.
Format
(1)MOSAIC{ON[,]<˜_—BG>[,<˜_—BG> c]{|{OFF[,]<˜_—BG>[,<˜_—BG> c]}
(2)MOSAIC(<…•½ƒhƒbƒg”>,<‚’¼ƒhƒbƒg”>)
Example
MOSAIC ON 4
MOSAIC( 4, 4 )
The mosaic hangs to the text screen usually. Please push the [F12] key to display it again.
Parameter
<…•½ƒhƒbƒg”>,<‚’¼ƒhƒbƒg”>c Numerical value type of fixed zero point type. The range of the value is an integer of 1~16.
<˜_—BG>c Logical BG who puts the mosaic is specified.
Turn on c The mosaic is put.
Turn off c The mosaic is taken.
Operation is detailed.
Format (1) <˜_—BG>effective/invalidates the effect of the object mosaic. It is possible to specify it by two or more numbers' tying. Existing together to turning off is possible to turn on. Specification and a bright number at the end is given to priority when the same number is specified. When the end of the parameter ends because of turning on or turning off, presence in the effect of the <˜_—BG>mosaic to all of the object screen mode is specified.
Format (2) puts the effect of the mosaic on the screen specified by format (1). The mosaic in the vertical direction doesn't hang to the rotation screen.
It is given and it is .. <˜_—BG>,.. as follows. the effect of the mosaicThe mosaic hangs only horizontally, and the vertical direction is disregarded for the rotation screen. The mosaic cannot be put on the polygon and sprite.
<˜_—BG>Direction where kind mosaic of number screen hangs
0 horizontal direction of screen of 0 bit maps and vertical directions
One horizontal direction of screen of one bit map and vertical direction
0 horizontal direction of rotation screen of two bit maps
0 horizontal direction of screen of four characters and vertical directions
One horizontal direction of screen of five characters and vertical direction
Two horizontal direction of screen of six characters and vertical directions
Three horizontal direction of screen of seven characters and vertical directions
0 horizontal direction of screen of eight rotations
One horizontal direction of screen of nine rotations
Ten sprite polygon side mosaic doesn't hang. "Illegal function call" error occurs.
Example
It gradually makes it in detail putting the mosaic on all BG screen.
NEW
100 The effect of the mosaic is put on the MOSAIC ON¨ all BG screen.
110 FOR DOT= 16 TO 1 STEP -1
120 MOSAIC( DOT, DOT )
130 VSYNC 3
140 NEXT DOT
RUN
The <˜_—BG>mosaic to all becomes invalid by the SCREEN instruction, and the number of horizontal dots and the number of vertical dots become (1,1), too.
Reference
SCREEN

Direct execution instruction indirect execution instruction of PAINT
Function
It paints out with the color that specifies the area on the bit map screen.
Format
(1) PAINT (> < Y coordinates of < X coordinates >)[,<“h‚éF>[,<‹«ŠEF>[,<‹«ŠEF> c]]]
(2) PAINT (> < Y coordinates of < X coordinates >) turning on[<“h‚éF>]
Example
PAINT( 100, 100 ), C
PAINT( PX, PY ), PVC, BC
PAINT( X, Y ) ON, -1
Parameter
< Y coordinates < X coordinates > > c Numerical value type of fixed zero point type (All the decimal parts are rounded down).
<“h‚éF>,<‹«ŠEF>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). The range of an effective numerical value depends on the number of colors that can be used on the bit map screen where it draws.
Turn on c Part of specified coordinates and the same consecutive color is painted out. <“h‚éF>
Operation is detailed.
Format (1) paints out part of a color different from specification from specified coordinates. <“h‚éF>
Format (2) paints out part of the coordinates and the same consecutive color from specified coordinates. <“h‚éF>
Coordinates (unit of the dot) that begin to color are specified < X coordinates > for < Y coordinates >. As for coordinates, the position that hits the top of the left of initial on the screen becomes standard (0,0).
It is from specified coordinates and it <“h‚éF>paints out to the specified <‹«ŠEF>color boundary with the color for which is specified for format (1).
It is painted out that it is from coordinates specified about the part of a color of specified coordinates and the same consecutive color for format (2). <“h‚éF>

When both are <“h‚éF>omitted, the color set to the drawing color by the COLOR instruction risks and it is treated. <“h‚éF>Moreover, paint ends the instruction without doing anything when the <“h‚éF>same as the color in the ground seat table. On the bit map screen set to default by the ACTIVE instruction, it paints out for the screen mode where two or more bit map screens exist.
Attention
The drawing range object is worn in the area where the clipping was done by the WINDOW instruction on the bit map screen selected with ACTIVE. <“h‚éF>However, it paints out with the transparent color in case of -1. It becomes an object and -1 is treated actually as the 0th colors for <˜_—BG>256 colors (palette).
Reference
ACTIVE, WINDOW

Direct execution instruction indirect execution instruction of PALETTE
Function
Change of palette value
Format
(1)PALETTE[<˜_—BG>],<ƒpƒŒƒbƒg”Ô†>[,{<”’lŽ®>|<•¶Žš—ñŽ®>}[,{<”’lŽ®>|<•¶Žš—ñŽ®>} c]]
(2)PALETTE[<˜_—BG>],-1
Example
PALETTE ,C, RGB( R, G, B )
PALETTE ,15, A$
PALETTE 0, -1
Parameter
<˜_—BG>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<ƒpƒŒƒbƒg”Ô†>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<”’lŽ®>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~7.
<•¶Žš—ñŽ®>c Word character string. The shape of the character string is described later.
Operation is detailed.
Format (1) sets the color data to the palette.
Format (2) returns the palette value to a standard color of the screen (initial state).

<ƒpƒŒƒbƒg”Ô†>The palette value is set to the palette number in which is specified. <ƒpƒŒƒbƒg”Ô†>The value of 1~255 is effective (The reason for 0 is that it becomes fixation by the transparent color). <”’lŽ®>The value in which is specified is a palette value led by the following expression, and it <”’lŽ®>corresponds to the palette of one one-.
Specified color value =+ X 32+X 1024 <Ô¬•ª> <—ά•ª> <¬•ª>
(Or,) RGB. (<Ô¬•ª>,<—ά•ª>,<¬•ª>)
<•¶Žš—ñŽ®>Please refer to the character string of the hexadecimal number form of which the value is the above-mentioned numerical value when you specify. <•¶Žš—ñŽ®>When the fraction is caused from the head drinking corresponding to the palette of one every two characters, it becomes the other side (round-down) about the fraction part. Moreover, if it doesn't queue up in order of the high rank and the subordinate position, the character string of the hexadecimal number form doesn't become it. In the expression of this book, it is synonymous with the word character string. In any case, only 15 subordinate position bits' worth of data becomes effective.
When the color and 1 on the character side of the font is added, it becomes a color in the framing part of the font when 15 is added to the value in which 16 palette numbers used by the COLOR instruction etc. are multiplied when this instruction is executed for the text screen when the character colors are 16 colors in case of the case of the text screen.

Color palette code X 16+&H0F on character side
Color palette code X 16+&H01 of framing
It is treated as ..palette number.. 0 always, and when the character color in case of the case of the text screen specifies it for 256 colors of the text in the SCREEN instruction in case of 256 colors, palette number 15 becomes and color and palette number 1 of the ground of the font become the colors in the framing part of the font.
Color &H0F on character side
Color &H01 of framing
In this instruction, it is also possible to set the palette value of the polygon (sprite) specifying <˜_—BG>10. In that case, the range of an effective numerical value becomes 0~511. Moreover, even if which palette is set, both parties' palettes are changed because the palette is shared on two screens of logic BG8 and 9 when the palette value of three axis rotation screen of screen mode 6 is set. Moreover, the range of an effective numerical value becomes 0~511.

Direct execution instruction indirect execution instruction of PRIORITY
Function
The priority level displayed on the screen is set.
Format
PRIORITY <˜_—BG>,<—Dæ“x>
Example
PRIORITY 0, 5
Parameter
<˜_—BG>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<—Dæ“x>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~7.
Operation is detailed.
<˜_—BG>The priority level of the screen where was specified is specified. <—Dæ“x>It is displayed forward by the numerical value that specifies large. When the <—Dæ“x>screen of the same exists, logical BG's small one is priority Sa chain. Moreover, when <—Dæ“x>0 is specified, the display of the screen is prohibited. (Sprite is excluded. )<˜_—BG>However, priority to BG of sprite is specified for the value of 10~16. Sprite can specify independent priority for of each dividing into seven kinds.
Concretely,
PRIORITY 10+ 0, <—Dæ“x>~ PRIORITY 10+ 6, <—Dæ“x>
The priority of seven kinds of meter is specified. <˜_—BG>The value added to ten <—Dæ“xƒŒƒWƒXƒ^>becomes ..drinking.. number for sprite. To reflect the specified priority in the polygon and sprite, <ƒeƒNƒXƒ`ƒƒID>X&H1000 is <—Dæ“xƒŒƒWƒXƒ^>added to the item of parameter's of the SETATR instruction.
Attention
A virtual keyboard actually uses this register though the priority register of the eighth kind exists. Priority is always seven though the register of piece can be specified by the SETATR instruction.
Setting of priority
Logic..priority..omit..priority..bit map..screen..bit map..screen..bit map..rotation..screen..definition..character..screen..character..screen..character..screen..character..screen..screen..screen..sprite..priority..register..sprite..priority..register..sprite..priority..register..sprite..priority..register..sprite..priority..register..sprite..priority..register..sprite..priority..register..priority..high number..character..forward..become.
Reference
SETATR

Direct execution instruction indirect execution instruction of PSET
Function
The point is displayed in coordinates that the bit map screen specified.
Format
PSET (> < Y coordinates of < X coordinates >)[,]
Example
A white point is stricken to the position of PSET(100,100) and &H7FFF¨(100,100).
Parameter
< Y coordinates < X coordinates > > c Numerical value type of fixed zero point type (All the decimal parts are rounded down).
c Numerical value type of fixed zero point type. The range of an effective numerical value is numerical that can be used on the bit map screen where it draws of the color (All the decimal parts are rounded down).
Operation is detailed.
The point is drawn in the area where it is selected with ACTIVE of the bit map screen, and the clipping was done by the WINDOW instruction. As for coordinates, the position that hits the top of the left of initial on the screen becomes standard (0,0).
When it drinks and Sa Sadamu is omitted, it becomes a color set by the COLOR instruction.
On the bit map screen set to default by the ACTIVE instruction, it is drawn for the screen mode where two or more bit map screens exist. Coordinates drawn by this instruction are used as a beginning point when the LINE instruction is omitted.
Reference
ACRIVE, WINDOW, COLOR, LINE

Direct execution instruction indirect execution instruction of PUTCHR
Function
Writing of pattern name data in character screen
Format
(1) <˜_—BG>< X character positional > < Y character position > PUTCHR[] [,] (|<”’l>[,{|<”’l>l} c]
(2)PUTCHR[<˜_—BG>],<ŠJŽnVRAMƒAƒhƒŒƒX>,{|<”’l>}[,{|<”’l>} c]
Example
The text of SCREEN 0, 4, and 16¨16 color mode is allocated to logic BG 4.
Light blue "3" is displayed on PUTCHR 4, (10,10), and ASC("3") + &H5000¨ text screen.
Ten light blue "4" is displayed below by the two lines of PUTCHR 4, (10,12), and STRW$(10,&H5034) ¨.
Parameter
<˜_—BG>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0 or more (All the decimal parts are rounded down).
Position position ..< X character.. > ..< Y character.. > c Numerical value type of fixed zero point type. The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<ŠJŽnVRAMƒAƒhƒŒƒX>c Numerical value type of fixed zero point type. The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
c Character string type. When consecutive data is written, it uses it. Refer to the following "Pattern name data structure" for the shape of the character string.
<”’l>c Specified word numerical value. Refer to the following "Structure of the pattern name data" for the shape of the numerical value.
Operation is detailed.
When > < Y character position > is position given, < X character can specify the writing starting position for a starting position by the character coordinates when making it on the left of the map of the object screen (0,0) in format (1). The range at the character position is maximum value -1 of the width of the character of the screen in 0~. The range of the position of < X character of > < Y character position > is maximum value -1 of the width of the character of the screen in 0~. When the character position exceeds a value or the maximum value negative, it is treated as a surplus of the maximum value. For instance, when the width of the screen character of object BG is horizontal character width = &H80 character and width of the length character = &H80 character
PUTCHR 4,( &H102, &H110 ),
‚Í
PUTCJR 4,( &H102 AND &H7F, &H110 AND &H7F ),
It is the same.

When format (2) is specified, <ŠJŽnVRAMƒAƒhƒŒƒX>data is written from the starting address in order of the address. Data takes &H1FFFF and AND for the odd number address and becomes an even number each word data (two bytes) because it is written. When the forwarding data exceeds the object character size, it becomes an error. <ŠJŽnVRAMƒAƒhƒŒƒX>When this value is exceeded drinking though it is maximum values -1 of the number of characters of range 0~ object screens, it is treated as surpluses of the maximum values of the number of characters. For instance, when the character size of the screen of object BG is &H4000 byte (= &H2000 character)
PUTCHR 4, &H5000
‚Í
PUTCJR 4,( &H5000 AND &H3FFE ),
It solves and it does and it is treated.

The <•¶Žš—ñ>data garishly <”’lŽ®>specified again is written from the position specified < X coordinates > by < Y coordinates >. < X coordinates > and coordinates of < Y> becomes master-apprentice by the character coordinates. It is not possible to write it like exceeding the size of the screen in any case. Moreover, the bit is disregarded (AND of coordinates is taken and processed). <˜_—BG>However, logical BG on the character screen specified by the ACTIVE instruction at the end is handled when omitted.
Structure of pattern name data
The structure of the pattern name data is data of one word of the following bit configurations.
15~12 bit palette number
Bit 11 upper and lower reversing flag(The under is reversed 0= as it is. )
Bit 10 right and left reversing flag(1= right and left is reversed 0= as it is. )
09~00 bit character number
The palette number is as follows for the character screen.
. 0 in case of 256 colors in number of colors of character screens.
. 0 or 1 in case of 512 colors in number of colors of character screens.
The palette of other screens must be referred to when you set the values other than these. The same one as the value specified by the COLOR instruction is specified for the text screen (16 color mode). The value of pattern number X2 enters the character number when the character code is a character screen in case of the text screen.
Example
SCREEN 0, 4, 256
The text is made 256 colors with SCREEN MODE 0, and it allocates it in logic BG4.
PUTCHR 4,( 10, 10 ), ASC( "X" )* 2+ &H1000
"X" is displayed at the position of (10,10) of the character screen of logic BG 4 (text screen) with palette 1.
PALETTE 4, 256* 1+ 15, RGB( 31, 0, 0 )
The 15th color of palette 1 of logic BG 4 is reddened. Palette 0 uses the color to 0~255 in 256 color mode, and palette 1 uses the color to 256~511(The color of the character font uses the 15th color code in the palette).
Reference
GCOPY, ACTIVE

Direct execution instruction indirect execution instruction of ROTATE
Function
The display angle of the rotation screen is set.
Format
ROTATE [ < X axis rotation corner > ][ [ < Y axis rotation corner > ] and [ < Z axis rotation corner > ] ]
Example
ROTATE X, Y, Z
ROTATE ,,0.5
Parameter
< Z axis rotation corner > < Y axis rotation corner of < X axis rotation corner > > c Numerical value type of fixed zero point type (However, the integer part is disregarded).
Operation is detailed.
It is an instruction only for the screen mode for which the rotation screen can be used. It is applied to the rotation screen set by the ACTIVE instruction for screen mode 6.
When the screen mode only is 5 or 6(three axis rotation screen), > and < Y axis rotation corner specification of the corner of the rotation of the axis of < X of > is effectively disregarded in case of screen mode 2 and 3. The numerical value specified for each parameter is an angle by the decimal value to 0~1, and the unit becomes radian (1.000=360). The specified angle is turned upside down by 0.5 at the same positive position as an initial state at 0. For instance, if it is a rotation corner of Z axis, it usually displays by 0, and 270 rotations are made 180 and 0.75 to the clock surroundings by 0.25 by 90 and 0.5.
Attention
> < Z axis rotation corner of > < Y axis rotation corner of < X axis rotation corner > is initialized by the SCREEN instruction by 0 and 0 and 0.
Reference
ACTIVE, SCREEN

Direct execution instruction indirect execution instruction of ROTCENTER
Function
A center position of the rotation screen is set.
Format
< Z coordinates ROTCENTER < X coordinates > < Y coordinates > >
Example
ROTCENTER 160, 112, 0
ROTCENTER XX, YY, ZZ
Parameter
< Z coordinates > < Y coordinates of < X coordinates > > c All the Catashous parts are rounded down. )
Operation is detailed.
Coordinates that become centers of the rotation when the screen is rotated are set. When the screen mode is Z axis rotation screen of 2 or 3, the specification of < Z coordinates > becomes invalid. It is an instruction only for the screen mode for which the rotation screen can be used.
It is applied to the rotation screen set by the ACTIVE instruction for screen mode 6.
> < Z coordinates of > < Y coordinates of < X coordinates > is initialized by the SCREEN instruction for one axis rotation screen by 320/2,224/2 and 0 (on the left of the screen).
> < Z coordinates of > < Y coordinates of < X coordinates > is initialized by the SCREEN instruction for three axis rotation screen by 0 and 0 and 0(center of the screen).
Explanation
Method of operating three axis rotation screen
1. The unit vector in the direction of the glance is made.
2. The translation according to the value of ROTPOS.
3. It scales it by the reciprocal of the value of ROTZOOM.
4. It rotates the axis in order of Z, Y, and X according to the value of ROTATE.
5. The translation according to the value of ROTCENTER.
The operation of ROTCENTER is different though it becomes the same operation as almost one axis-rotation screen on one axis rotation screen and three axis rotation screen. Because the translation is done on three axis rotation screen based on the center of the screen, a standard position is also different in one axis and the opposite direction though ROTCENTER is used on one axis rotation screen to set the rotation center in the screen where it assumed on the left of the screen to be standard (0,0).
Reference
ACTIVE

Direct execution instruction indirect execution instruction of ROTOVER
Function
Display setting in part outside area on rotation screen
Format
ROTOVER <‰æ–ÊŠOƒ‚[ƒh>[,<ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^>]
Example
ROTOVER 1, 2
Parameter
<‰æ–ÊŠOƒ‚[ƒh> c <ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^> c
Operation is detailed.
It is an instruction only for the screen mode for which the rotation screen can be used. It is applied to the rotation screen set by the ACTIVE instruction for screen mode 6. Moreover, the method of displaying the part when a part outside the area on the rotation screen is displayed by rotating the screen
The image in the rotation screen is repeatedly displayed outside 0 areas.
It garishly buries by one area. <ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^>
It is transparent outside two areas. (initial state)
<ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^>When <‰æ–ÊŠOƒ‚[ƒh>1 is specified, it becomes effective. <ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^>Data that specifies is treated assuming that the same form as the pattern name data. It is <•\Ž¦ƒ‚[ƒh>set to 0 in two in the SCREEN instruction. <ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^>
In screen mode 6, when =2 is <‰æ–ʃ‚[ƒh>used, the system reserves the last character code as a transparent character.
Character code &H3FF in case of 16 color mode
Character code &H1FF in case of 256 color mode
Example
When you bury a part outside the display by the character of white "X" when the text screen is allocated on the rotation screen in 16 color mode
ROTOVER 1, ASC( "X" )+ &H7000
..vicinity.. ..rolling.. (&H7000 is a palette code).
Supplementation
<ŒJ‚è•Ô‚µƒLƒƒƒ‰ƒNƒ^>It is the same one as the form used with peel such as , CCOPY and PUTCHR.
Reference
COPY, PUTCHR, SCREEN

Direct execution instruction indirect execution instruction of ROTPOS
Function
The distance from the aspect to the center of the rotation screen is set.
Format
ROTPOS [ < X distance > ][ [ < Y distance > ] and [ < Z distance > ] ]
Example
ROTPOS 100
ROTPOS ,,ZP
Parameter
< Z distance > < Y distance of < X distance > > c Distance from aspect to center on rotation side. The numerical value type of the fixed zero point type (All the decimal parts are rounded down).
Operation is detailed.
It is an instruction only for the screen mode for which the rotation screen can be used. It is applied to the rotation screen set by the ACTIVE instruction for screen mode 6. The distance for everyone from the aspect to the center of the rotation screen is specified. However, a negative value cannot be specified for < Z distance >. When the screen mode is Z position rotation screen of 2 or 3, the specification of < Z distance > becomes invalid.
Supplementation
< ZP < XP > < YP >> is initialized by the SCREEN instruction by 0 and 0,100.
Reference
SCREEN

Direct execution instruction indirect execution instruction of ROTZOOM
Function
The expansion rate to each direction on the rotation side is set. The rotation BG screen zooms (scale).
Format
ROTZOOM [ < X magnification > ][ [ < Y magnification > ] and [ < Z magnification > ] ]
Example
ROTZOOM 2, 2
ROTZOOM ,,Z
SCREEN 2 and 8¨ text are allocated to the rotation screen.
ROTZOOM-1¨X axis reversing
Parameter
< Z magnification > < Y magnification of < X magnification > > c Each expansion rate on rotation side from aspect axially. Numerical value type of fixed zero point type.
Operation is detailed.
It is an instruction only for the screen mode for which the rotation screen can be used. The ZOOM instruction is used for BG usually. Moreover, it is applied to the rotation screen set by the ACTIVE instruction for screen mode 6. The magnification is specified axially on the rotation side each of of. The contrasted axis reverses when a negative value is given to the magnification. Moreover, when the screen mode is Z axis rotation screen of 2 or 3, the specification of < Z magnification > becomes invalid.
Supplementation
< ZS < XS > < YS >> is initialized by the SCREEN instruction by 1 and 1 and 1. Besides this, SETPERS influences three axis rotation BG screen.
Reference
ZOOM, SCREEN, SETPERS

Direct execution instruction indirect execution instruction of SCREEN
Function
Initialization of screen and setting of screen mode
Format
SCREEN[<‰æ–ʃ‚[ƒh>][,<ƒeƒLƒXƒg•\Ž¦˜_—BG>][,<ƒeƒLƒXƒg•\Ž¦F”>][,<•`‰æƒtƒŒ[ƒ€’PˆÊ>]
Example
SCREEN 0
SCREEN ,4,256
Parameter
<‰æ–ʃ‚[ƒh>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~6.
<ƒeƒLƒXƒg•\Ž¦˜_—BG>c Numerical value type of fixed zero point type. The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<ƒeƒLƒXƒg•\Ž¦F”>c Numerical value type of fixed zero point type. An effective numerical value is a value of 16 or 256.
<•`‰æƒtƒŒ[ƒ€’PˆÊ>c Numerical value type of fixed zero point type. ..effective numerical value.. - Integer of 8~-1 and 1~8. The decimal part is rounded down.
Operation is detailed.
<ƒeƒLƒXƒg•\Ž¦F”>
To treat BG who allocated the text font by same number of colors as a usual character screen, 256 colors are specified. The text color specified that 256 colors are specified by the COLOR instruction is disregarded, and the first palette (COLOR 0) is always selected (Because the same color data as COLOR 7 of 16 color mode is set to COLOR 0 in 256 color mode, the text color becomes white in the state of the first stage).
<ƒeƒLƒXƒg•\Ž¦F”>When it drinks and Sa Sadamu is omitted, it processes it as 16 colors.
<•`‰æƒtƒŒ[ƒ€’PˆÊ>
The method of drawing sprite and the polygon is specified. Alternately display two displays of the polygon by using the frame buffer of seeing (VRAM area on the bit map screen), and to the frame buffer on the side not displayed in Sega Saturn
1. The buffer is deleted.
2. A necessary frequency overwrite of polygon that calculated and was projected to screen.
3. The buffer that finished being written is displayed, and it makes it to the buffer under the display for writing.
Is repeated.

<•`‰æƒtƒŒ[ƒ€’PˆÊ>..peel.. timing in which , frame buffer is replaced is specified and whether it costs it is specified at seconds how many/Because the interval of drawing becomes long and the input speed from the controller and the keyboard decreases, too operation becomes awkward though the polygon of a lot of areas can be displayed by the specification of a large value. It stands by until the display of all polygons ends if a positive value is given. It breaks off the display of the polygon at the time specified that a negative value is given. When omitting it, +1 is specified.
When setting it more than two frames in the SCREEN instruction without drawing in the unit of drawing of sprite, many (Let's do not exceed 1000) display the polygon side in single OBJECT, and the display of sprite might stop, and the input from the keyboard become impossible because of the key and the SCREEN [Ctrl] + [P] instruction to initialize the screen afterwards when assuming externals.
It stops with BASIC text preserved by soft reset (A+B+C + start button), and the following methods are combined, the part where the SCREEN instruction is defined is adjusted, and there is a possibility to be able to evade.

¥The <ƒtƒŒ[ƒ€”>mode that completely ends drawing as SCREEN and + is used.
¥It <‘å‚«‚ȃtƒŒ[ƒ€”>waits until it is assumed SCREEN and drawing ends completely.
¥The number of displays of polygons is decreased.
¥Registration is distributed to two or more OBJECT.
Content of initialization
¥The entire VRAM is initialized by 0.
¥The scroll position is returned to a standard position (initial position).
¥The zoom is released.
¥The priority of the screen is returned to an initial value.
¥The setting concerning the rotation screen is initialized.
¥All palettes are set to an initial value.
¥The character font of the text is registered again.
¥The text color is forwarded.
¥The WIDTH value is set to 1, 1, 38, and 26.
¥The WINDOW value is set to 0 and 0,319,223.
¥The setting of the ACTIVE instruction is set to smallest logical BG about each of the bit map and the character screen.
¥The reference coordinates when the beginning coordinates of the LINE instruction are omitted ..(0,0).. are initialized.
¥Object structure (OBJ) is initialized.
¥The texture management table is initialized (If the texture is secured by the same size, the pattern before can be used because the defined image data is not deleted).
¥The top data is initialized.
¥The polygon data is initialized.
¥The attribute data is initialized.
¥The SPRWINDOW value is returned to a standard value.
left 0;
top 0;
right 320- 1;
bottom 224- 1;
zlimit &H7FFF;
cx 320/ 2;
cy 224/ 2;

Screen mode 0
Logical BGKind of screenColor mode color number remarks
0Bit map screen RGB 32768 It is possible to zoom with the scroll.
1~ 3It is not possible to use it. - -
4Character screenPalette 512It is possible to zoom with the scroll.
5Character screenPalette 512It is possible to scroll.
6~ 9It is not possible to use it. - -
Screen mode 1
Logical BGKind of screenColor modeNumber of colorsRemarks
0Bit map screenPalette256 It is possible to zoom with the scroll.
1Bit map screenPalette256 It is possible to zoom with the scroll.
2~ 3It is not possible to use it. - -
4Character screenPalette512 It is possible to scroll.
5Character screenPalette512 It is possible to scroll.
6~ 9It is not possible to use it. - -
Screen mode 2
Logical BGKind of screenColor modeNumber of colorsRemarks
0~ 3It is not possible to use it. - -
4Character screenPalette512It is possible to zoom with the scroll.
5Character screenPalette512It is possible to zoom with the scroll.
6~ 7It is not possible to use it. - -
8Character rotation screenPalette512 The rotation that centers on Z axis is possible.
9It is not possible to use it. - -
Z axis rotation screen of logic BG8 is a size of 256X 256 character. A virtual keyboard uses the last 16 colors of the color of logic BG8.
Screen mode 3
Logical BGKind of screenColor modeNumber of colorsRemarks
0~ 1It is not possible to use it. - -
2Bit map screenPalette256The rotation that centers on Z axis is possible.
3It is not possible to use it. - -
4Character screenPalette512It is possible to zoom with the scroll.
5Character screenPalette512It is possible to zoom with the scroll.
6~ 9It is not possible to use it. - -
Screen mode 4
Logical BGKind of screenColor modeNumber of colorsRemarks
0~ 3It is not possible to use it. - -
4Character screenPalette256 It is possible to zoom with the scroll.
5Character screenPalette256 It is possible to zoom with the scroll.
6Character screenPalette256 It is possible to scroll.
7Character screenPalette256 It is possible to scroll.
8~ 9It is not possible to use it. - -
Screen mode 5
Logical BGKind of screenColor modeNumber of colorsRemarks
0~ 3It is not possible to use it. - -
4Character screenPalette512It is possible to zoom with the scroll.
5Character screenPalette512It is possible to zoom with the scroll.
6~ 7It is not possible to use it. - -
8Character rotation screenPalette512It is possible to rotate by three axes.
9It is not possible to use it. - -
Three axis rotation screen of logic BG8 is a size of 256X 256 character.
Screen mode 6
Logical BGKind of screenColor modeNumber of colorsRemarks
0~ 3It is not possible to use it. - -
4Character screenPalette512 colorsIt is possible to zoom with the scroll.
5Character screenPalette512 colorsIt is possible to zoom with the scroll.
6~ 7It is not possible to use it. - -
8Character rotation screenPalette512 colorsIt is possible to rotate by three axes.
9Character rotation screenPalette512 colorsIt is possible to rotate by three axes.
Three axis rotation screen of logic BG8 is a size of 128X 128 character. Moreover, 512 colors and pattern generators become becoming of the palette up to 0~511 characters together together on the screen of logic BG8 and 9, too. <˜_—BG>COLOR and the character pattern of drinking 8 and 9 are common.
Reference
ZOOM, SCREEN, SETPERS

Direct execution instruction indirect execution instruction of SCROLL
Function
Scroll of normal screen
Format
SCROLL[] and <˜_—BG>[STEP] [ < X position > ][ < Y position > ]
Example
SCROLL 0, SX, SY
SCROLL 4, STEP 0, 1
Parameter
<˜_—BG>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). Logical BG who can specify it is limited to the <˜_—BG>following number of effective in a present screen mode. The rotation bit map screen and the rotation character screen cannot be specified.
0 bit map screen 0
One bit map screen 1
Four character screen 0
Five character screen 1
Six character screen 2
Seven character screen 3
Position position ..< X.. > ..< Y.. > c Numerical value type of fixed zero point type (All the decimal parts are rounded down).
STEP c It becomes relative specification from present location.
Operation is detailed.
The position where the screen is begun the display is specified.
Example
SCROLL, 50, 50
The part of coordinates of (50,50) becomes a position on the left of the screen when specifying it like this. The position in which < X was specified that > and < Y position > is position omitted at the end is used. Moreover, when STEP is specified, it becomes relative specification from present location. When > and < Y position > is position omitted, a relative position is treated as 0 as for < X.
As for the unit, only ten subordinate position bits become effective in each dot absolutely in any case of positional specification and a relative, positional specification (AND is processed). <˜_—BG>However, the setting of the ACTIVE instruction becomes effective when omitted. As for the SCROLL position, < X 0 and position >= position >= of < Y are initialized by the SCREEN instruction by 0.

Direct execution instruction indirect execution instruction of SETCHR
Function
The pattern data used on the character screen is written.
Format
(1)SETCHR[<˜_—BG>],[<ƒpƒ^[ƒ“”Ô†>][,<•¶Žš—ñŽ®>]
(2)SETCHR[<˜_—BG>],[<ƒpƒ^[ƒ“”Ô†>],<•¶Žš”>,READ
Example
SCREEN 0
SETCHR 4, ASC("A"), and STRING$(32,&HFF) ¨ character "A" is made a white square. ([Ctrl] Recover with + [P] key. )
Parameter
<˜_—BG>c Numerical value type of fixed zero point type. The range of an effective numerical value depends on the screen mode set by the SCREEN instruction.
<ƒpƒ^[ƒ“”Ô†>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0~511(Or, 0~1023).
<•¶Žš”>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of one or more.
<•¶Žš—ñŽ®>c Character string.
READ c Specification of reading from DATA initialization statement.
Operation is detailed.
Format (1) writes the specified character string in the pattern generator.
Format (2) is written from DATA in the pattern generator for specified a few minutes of the character.
The pattern generator used on the character screen is written. The text screen is included in the character screen. As for the pattern generator data, is <˜_—BG>independent excluding SCREEN 6.
<˜_—BG>However, logical BG on the character screen specified by the ACTIVE instruction at the end is handled when omitted.
<ƒpƒ^[ƒ“”Ô†>When is omitted, it is applied just behind the pattern number to which it refers by the READCHR$ function or the SETCHR instruction executed before. However, when logical BG is changed, it is necessary to specify it.
The size of one pattern generator data becomes 64 bytes (64 characters) on the left of the pattern of 8X 8 dot for the character screen treated by 256 colors as for the structure of the pattern generator data because it is the one that horizontally becomes a row of the color data of each dot, and the size of one pattern generator data becomes 32 bytes (32 characters) for the text screen where 16 colors are treated.
It is format (2) and necessary data.
The data for DATA that can be used for format (2) is limited to the character-string data of the hexadecimal number form. It is used from the left side of the character string inside as data of one byte every two characters. When <•¶Žš”>data is read more specification (character string of a long hexadecimal number form), the data of the read remainder is annulled. Moreover, when the fraction is caused in the number of characters of data, a high-ranking digit is processed as 0.
For instance, when you define the following patterns
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -

- c Palette code 0
- c Palette code 15( &H0F )

The pattern data of the text screen where 256 colors can be used
DATA 00000F0F0F000000
DATA 000F0F000F0F0000
DATA 0F0F0000000F0F00
DATA 0F0F0000000F0F00
DATA 0F0F0F0F0F0F0F00
DATA 0F0F0000000F0F00
DATA 0F0F0000000F0F00
DATA 0000000000000000
Or,
DATA 00,00,0F,0F,0F,00,00,00
DATA 00,0F,0F,00,0F,0F,00,00
DATA 0F,0F,00,00,00,0F,0F,00
DATA 0F,0F,00,00,00,0F,0F,00
DATA 0F,0F,0F,0F,0F,0F,0F,00
DATA 0F,0F,00,00,00,0F,0F,00
DATA 0F,0F,00,00,00,0F,0F,00
DATA 00,00,00,00,00,00,00,00

The pattern data of the text screen where 16 colors can be used
DATA 00FFF000
DATA 0FF0FF00
DATA FF000FF0
DATA FF000FF0
DATA FFFFFFF0
DATA FF000FF0
DATA FF000FF0
DATA 00000000
Or,
DATA 00,FF,F0,00
DATA 0F,F0,FF,00
DATA FF,00,0F,F0
DATA FF,00,0F,F0
DATA FF,FF,FF,F0
DATA FF,00,0F,F0
DATA FF,00,0F,F0
DATA 00,00,00,00
It is in.
It is necessary to note it on three axis rotation screen of screen mode 6 because the pattern generator table is shared on two screens of logic BG8 and 9.

Direct execution instruction indirect execution instruction of VSYNC
Function
It waits until the specified time passes.
Format
VSYNC[<‘Ò‚¿ŽžŠÔ>]
Example
VSYNC
VSYNC 2
Parameter
<‘Ò‚¿ŽžŠÔ>c Numerical value type of fixed zero point type. The range of an effective numerical value is a value of 0 or more (All the decimal parts are rounded down).
Operation is detailed.
<‘Ò‚¿ŽžŠÔ>The unit of the value in which is specified is about 1/60 seconds. <‘Ò‚¿ŽžŠÔ>When it drinks and Sa Sadamu is omitted, it processes it as well as time when one was specified. <‘Ò‚¿ŽžŠÔ>The instruction is immediately ended drinking of 0 Sa Sadamu. Interrupt with the interval timer etc. is generated while executing this instruction. Please do not use the VSYNC instruction more than once in the timer interrupt etc.

Direct execution instruction indirect execution instruction of WINDOW
Function
The range to draw by the bit map drawing instruction is specified.
Format
WINDOW[<¶’[>],[<ã’[>][,<‰E’[>][,<‰º’[>]
Example
WINDOW 0, 0, 200, 223
Parameter
<¶’[>,<ã’[>,<‰E’[>,<‰º’[>c Numerical value type of fixed zero point type. Positive value. <‰E•>- <¶•>, <‰º’[>- <ã’[>It becomes an error.
Operation is detailed.
When 0, 1, and <˜_—BG>2 of the bit map screens are selected by immediately after the SCREEN instruction execution or the ACTIVE instruction, the drawing area on the bit map screen is specified. <‰E’[> <¶’[>Height (=-+1) of width (=-+1) of the drawing area and the drawing area <‰º’[> <ã’[>should enter the range of the size of the bit map screen set by the SCREEN instruction. There is a part not displayed not to scroll even if it draws when WINDOW is set by the maximum size. The area of WINDOW is shared and becomes one as for the screen mode to be able to select two or more bit map screens.
When the texture screen has been selected by the ACTIVE instruction, the drawing area on the texture screen is specified. <‰E•> <¶•>Height (-+1) of width (=-+1) of the drawing area and the drawing area <ã’[>should be in the size of the texture that becomes an <‰º’[>object. For instance, when the size of the texture is defined by SETTEX 0, 32, and 4,256(texture ID=0, 32 width dots, 4 dots in the length width, and 256 colors), even 0~3 becomes effective the height of 0~31 and the drawing area the width of the drawing area. Every time, it is necessary to specify it immediately after the instruction of ACTIVE when WINDOW is set to the texture screen because the same range as the size of the texture for which the area of WINDOW is specified by the SETTEX instruction is set.
The set value returns to an initial value with [Ctrl] + [P] key to the SCREEN instruction and the edit. The bit map screen is selected, and it is initialized immediately after the SCREEN instruction execution by WINDOW 0 and 0,319,223.

Direct execution instruction indirect execution instruction of ZOOM
Function
Expansion of normal screen
Format
ZOOM [<˜_—BG>],[<‰¡”{—¦>][,]
Example
ZOOM 0, 2, 2
Parameter
<˜_—BG>c Numerical value type of fixed zero point type (All the decimal parts are rounded down). The range of an effective numerical value depends on the screen mode set by the SCREEN instruction. Logical BG who can specify it is limited to the <˜_—BG>following number of effective in a present screen mode. The rotation bit map screen and the rotation character screen cannot be specified. In this case, it is done that ROTZOOM is ordered instead.
0 bit map screen 0
One bit map screen 1
Four character screen 0
Five character screen 1
Six character screen 2
Seven character screen 3
<‰¡”{—¦>, c Numerical value type of fixed zero point type. Value of 1.0 or more.
Operation is detailed.
It displays it at the expansion rate for which the zoom pats possible and <˜_—BG>specified screen is <‰¡”{—¦>specified. When one is large in the standard, the magnification is expanded. <‰¡”{—¦>When is omitted, the magnification specified at the end is used. <˜_—BG>However, the setting of the ACTIVE instruction becomes effective when omitted. <‰¡”{—¦>It is initialized by the SCREEN instruction by 1.0.
Reference
ROTZOOM