Return to previous page | Return to menu | Go to next page


void *
Character display function

slLocate

Display position calculation (parameter is cell specification)

Format

void *slLocate(xpos , ypos)
Uint16 xpos ;
Uint16 ypos

Parameter

x pos X coordinate of text display position (range: 0 to 63 cells)
y pos Y coordinate of text display position (range: 0 to 63 cells)

Function

Returns the address value for text display.
The parameter represents the XY coordinate position in cell units on the screen.
One cell consists of 8x8 dots, and a normal scroll surface consists of 64x64 cells.

Return value

Address value for text display

Remarks

Example of function “slLocate”:
Uint16 x = y = 2 ;
slPrint ( "ABC" , slLocate ( x , y ) ) ;

・ It is divided by the cell unit of the grid in the left figure.
• One cell consists of 8 x 8 dots, with the origin at the top left of the screen.

Reference: Chapter 8 Scroll

slLocate


Return to previous page | Return to menu | Go to next page