; setup VDC write offset and register ldx #$08 ; BAT x = 8 lda #$0A ; BAT y = 10 jsr vdc_calc_addr jsr vdc_set_write ; output the string "Yo" lda #'Y' jsr print_char lda #'o' jsr print_char
The font must be 8x8 pixels wide and stored in VRAM as tiles. This means that the font routines modifies the BAT. Only standard ASCII (0-127 included) is supported at the moment.
Text output routines. | |
Functions | |
print_char | Output an ASCII character at the current BAT location. |
print_digit | Output a decimal digit at the current BAT location. |
print_hex | Output a hexadecimal digit at the current BAT location. |
print_bcd | Output a bcd number at the current BAT location. |
print_dec_u8 | Output an unsigned decimal number at the current BAT location. |
print_dec_u16 | Output an unsigned decimal number at the current BAT location. |
print_hex_u8 | Output a hexadecimal number at the current BAT location. |
print_hex_u16 | Output a hexadecimal number at the current BAT location. |
print_string | Display a null (0) terminated string in a textarea. |
print_string_raw | Display a null (0) terminated string. |
print_string_n | Display the n first characters of a string. |
print_fill | Fill an area with a given character. |
Output an ASCII character at the current BAT location.
A | ASCII character |
Display a null (0) terminated string in a textarea.
The characters must have been previously converted to fit to current font.
_si | string address. |
X | textarea x tile position. |
A | textarea y tile position. |
_al | textarea width. |
_ah | textarea height. |
_si | pointer to the last displayed character or ‘\0’. |