libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
BIOS - INT 13h - Text

Macros

#define TEXT_SCREEN_WIDTH   28
 
#define TEXT_SCREEN_HEIGHT   18
 
#define TEXT_MODE_ANK   0
 
#define TEXT_MODE_ANK_SJIS   1
 
#define TEXT_MODE_SJIS   2
 
#define NUM_HEXA   0x01
 
#define NUM_PADSPACE   0x00
 
#define NUM_PADZERO   0x02
 
#define NUM_ALIGN_RIGHT   0x00
 
#define NUM_ALIGN_LEFT   0x04
 
#define NUM_SIGNED   0x08
 
#define NUM_STORE   0x80
 

Functions

void text_screen_init (void)
 
void text_window_init (uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t base)
 
void text_set_mode (uint16_t mode)
 
uint16_t text_get_mode (void)
 
void text_put_char (uint8_t x, uint8_t y, uint16_t chr)
 
uint16_t text_put_string (uint8_t x, uint8_t y, const char __far *str)
 
uint16_t text_put_substring (uint8_t x, uint8_t y, const char __far *str, uint16_t length)
 
uint16_t text_put_numeric (uint8_t x, uint8_t y, uint8_t width, uint8_t flags, uint16_t value)
 
uint16_t text_fill_char (uint8_t x, uint8_t y, uint16_t length, uint16_t chr)
 
void text_set_palette (uint16_t palette_index)
 
uint16_t text_get_palette (void)
 
void text_get_fontdata (uint16_t chr, void __far *buf)
 
void text_set_screen (uint8_t screen_id)
 
uint16_t text_get_screen (void)
 
void cursor_display (uint8_t on)
 
uint16_t cursor_status (void)
 
void cursor_set_location (uint8_t x, uint8_t y, uint8_t width, uint8_t height)
 
uint32_t cursor_get_location (void)
 
void cursor_set_type (uint16_t palette_index, uint16_t blink_interval)
 
uint32_t cursor_get_type (void)
 

Detailed Description

Macro Definition Documentation

◆ NUM_ALIGN_LEFT

#define NUM_ALIGN_LEFT   0x04

Definition at line 57 of file text.h.

◆ NUM_ALIGN_RIGHT

#define NUM_ALIGN_RIGHT   0x00

Definition at line 56 of file text.h.

◆ NUM_HEXA

#define NUM_HEXA   0x01

Definition at line 53 of file text.h.

◆ NUM_PADSPACE

#define NUM_PADSPACE   0x00

Definition at line 54 of file text.h.

◆ NUM_PADZERO

#define NUM_PADZERO   0x02

Definition at line 55 of file text.h.

◆ NUM_SIGNED

#define NUM_SIGNED   0x08

Definition at line 58 of file text.h.

◆ NUM_STORE

#define NUM_STORE   0x80

Definition at line 59 of file text.h.

◆ TEXT_MODE_ANK

#define TEXT_MODE_ANK   0

Definition at line 43 of file text.h.

◆ TEXT_MODE_ANK_SJIS

#define TEXT_MODE_ANK_SJIS   1

Definition at line 44 of file text.h.

◆ TEXT_MODE_SJIS

#define TEXT_MODE_SJIS   2

Definition at line 45 of file text.h.

◆ TEXT_SCREEN_HEIGHT

#define TEXT_SCREEN_HEIGHT   18

Definition at line 38 of file text.h.

◆ TEXT_SCREEN_WIDTH

#define TEXT_SCREEN_WIDTH   28

Definition at line 37 of file text.h.

Function Documentation

◆ cursor_display()

void cursor_display ( uint8_t on)

◆ cursor_get_location()

uint32_t cursor_get_location ( void )

◆ cursor_get_type()

uint32_t cursor_get_type ( void )

◆ cursor_set_location()

void cursor_set_location ( uint8_t x,
uint8_t y,
uint8_t width,
uint8_t height )

◆ cursor_set_type()

void cursor_set_type ( uint16_t palette_index,
uint16_t blink_interval )

◆ cursor_status()

uint16_t cursor_status ( void )

◆ text_fill_char()

uint16_t text_fill_char ( uint8_t x,
uint8_t y,
uint16_t length,
uint16_t chr )

◆ text_get_fontdata()

void text_get_fontdata ( uint16_t chr,
void __far * buf )

◆ text_get_mode()

uint16_t text_get_mode ( void )

◆ text_get_palette()

uint16_t text_get_palette ( void )

◆ text_get_screen()

uint16_t text_get_screen ( void )

◆ text_put_char()

void text_put_char ( uint8_t x,
uint8_t y,
uint16_t chr )

◆ text_put_numeric()

uint16_t text_put_numeric ( uint8_t x,
uint8_t y,
uint8_t width,
uint8_t flags,
uint16_t value )

◆ text_put_string()

uint16_t text_put_string ( uint8_t x,
uint8_t y,
const char __far * str )

◆ text_put_substring()

uint16_t text_put_substring ( uint8_t x,
uint8_t y,
const char __far * str,
uint16_t length )

◆ text_screen_init()

void text_screen_init ( void )

◆ text_set_mode()

void text_set_mode ( uint16_t mode)

◆ text_set_palette()

void text_set_palette ( uint16_t palette_index)

◆ text_set_screen()

void text_set_screen ( uint8_t screen_id)

◆ text_window_init()

void text_window_init ( uint8_t x,
uint8_t y,
uint8_t width,
uint8_t height,
uint16_t base )