![]() |
| TI99 Environment |
| Syntax |
| CALL_CHAR(character-code, pattern-identifier) |
| Description |
|
The CALL_CHAR function allows you to define special graphics characters. Character-code specifies the ASCII character to define and must be a numeric expression with a value from 32 through the value of endchar. The value endchar is a constant set at the beginning of the program during initialization to specify how many characters are available to customize. Pattern-identifier is a 0 through 64 character string expression in hexadecimal (0-9 and A-F) which specifies the pattern of the character(s) you are defining. This string expression is a coded representation of the dots which make up a character on the screen. Each character is made up of 64 dots comprising an 8 by 8 grid as shown below. ![]() The following table shows all the possible on/off conditions for the four dots in a given block, and the binary and hexadecimal codes for each condition. |

| Example Code |
Example Code 1: CALL_CLEAR() A$="1898FF3D3C3CE404" B$="1819FFBC3C3C2720" CALL_COLOR(9,7,12) ` Set character color to Dark Red (7) on Light Yellow (12) CALL_VCHAR(12,16,96,1) do CALL_CHAR(96,A$) TIWAIT(250) CALL_CHAR(96,B$) TIWAIT(250) Loop Example Code 2: ` Creates a magnified sprite consisting of 4 graphic characters ` It also displays the individual graphic hex patterns using string functions a$ = "0103C3417F3F0707" a$ = a$ + "0707077E7C400000" a$ = a$ + "80C0C080FCFEE2E3" a$ = a$ + "E0E0E06060606070" CALL_CHAR(128,a$) display_at(17,1, "128 " + "129 " + "130 " + "131",0) display_at(19,2,CHR$(128)+ " " + CHR$(129)+ " " + CHR$(130) + " " + CHR$(131),0) ti_print(1,"128 " + call_charpat(128)) ti_print(1,"129 " + call_charpat(129)) ti_print(1,"130 " + call_charpat(130)) ti_print(1,"131 " + call_charpat(131)) call_magnify(3) call_sprite(1,128,14,50,90,0,0) display_at(5,1,"Press any key to change size",0) DO : tiwaitkey() : call_magnify(4) tiwaitkey() : call_magnify(3) LOOP
| Go back to ... |
| TI99E Commands Menu |
| Main Menu |
Copyright © Carlos Santiago Lebron - TI99 Environment 2020
![]() |