TI99 Environment

# CALL_HCHAR

Syntax

CALL_HCHAR(row,column,ascii-code,repetition)

Description

The HCHAR function displays a character anywhere on the display screen and optionally repeats it horizontally. The character with the ASCII value of ascii-code is placed in the position described by row and column and is repeated horizontally repetition times. A value of 1 for row indicates the top of the screen. A value of 24 is the bottom of the screen. A value of 1 for column indicates the left side of the screen. A value of 32 is the right side of the screen. Although the screen size is 24x32 (768 total characters), the repetition parameter allows as many as 32767 characters. The excess characters wrap around the screen and overlap previously displayed characters while also taking longer to complete the rendering process.

Example Code

    Example 1:
    repetitions = 1
    for ti_rows = 1 to 24
       CALL_HCHAR(ti_rows,1,ASC("!"),repetitions) : tiwait(100)
       inc repetitions
    next column
    wait key
    end

    Example 2:
    `ColorPattern
      `Program sample-Adapted from Page II-80 of the TI-99/4a Ref Guide
        for s = 2 to numberofcolors	`numberofcolors is a TI99E constant (value is 16)
         Call_Color(s,s,s)
        next s
        ti_SYNC()
       do
       cslchr = 40
        for x = 8 to 22
           Call_Vchar(4,x,cslchr,15)
           CALL_HCHAR(x-4,8,cslchr,15)
           tiwait(50)
           inc cslchr,8
        next x
      loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020