VISLOC (Statement)


Specify the display position of characters.


VISLOC <X position>, <Y position>[, <mode>]


<X coordinate >
Specifies the X coordinate of the character to be drawn.
<Y coordinate >
Specifies the Y coordinate of the character to be drawn.
<mode>
Specifies the coordinate mode of X and Y position data.
If ignored, 0 will be the default setting.
0: Specifies by column and line.
1: Specifies with the XY coordinate system.
The values to designate are not checked. Even if they are out of the drawing range, no error will result. Additionally, if they are out of the range, this instruction becomes invalid and the previously set value will be used.
  • When you turn ON the power, VISLOC 0, 0, 0 will be set as the initial setting.
  • If you set the mode to 0, the system will memorize the end position of the characters after they are drawn.
  • If the right of characters exceeds the end of a line, the system automatically feeds more lines.
  • For this instruction, a µVision board (option) is required.



VISPLNOUT 0
'Display storage memory 0 (processing screen)
VISSCREEN 0,0,1
'Instantaneously draw on processing screen 0
VISCLS 0
'Clear the screen
VISBRIGHT 255
'Set the brightness value for drawing
VISLOC 10,10
'Designate the position to display characters
VISPRINT "Test mode 0"
'
VISLOC 10,10,1
'Designate the position to display characters
VISPRINT "Test mode 1"
'
VISPRINT "Continuing Test mode 1"
VISPRINT "******** Line feed ********"


Top