3#ifndef __LIBWW_SYS_TEXT_H__
4#define __LIBWW_SYS_TEXT_H__
12#define NUM_PADSPACE 0x00
14#define NUM_PADZERO 0x02
16#define NUM_ALIGN_RIGHT 0x00
18#define NUM_ALIGN_LEFT 0x04
20#define NUM_SIGNED 0x08
26#define TEXT_MODE_ANK 0
28#define TEXT_MODE_ANK_SJIS 1
30#define TEXT_MODE_SJIS 2
33#define TEXT_SCREEN_WIDTH 28
34#define TEXT_SCREEN_HEIGHT 18
48 :
"Rah" ((uint8_t) 0x00)
64static inline void text_window_init(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t base) {
69 :
"d" (base),
"b" (((y << 8) | x)),
"c" (((height << 8) | width)),
"Rah" ((uint8_t) 0x01)
82 :
"b" (value),
"Rah" ((uint8_t) 0x02)
95 :
"Rah" ((uint8_t) 0x03)
106 :
"c" (ch),
"b" (((y << 8) | x)),
"Rah" ((uint8_t) 0x04)
115static inline void text_put_numeric(uint8_t x, uint8_t y, uint8_t width, uint8_t flags, uint16_t value) {
120 :
"d" (value),
"b" (((y << 8) | x)),
"c" (((flags << 8) | width)),
"Rah" ((uint8_t) 0x07)
125static inline void text_fill_char(uint8_t x, uint8_t y, uint16_t length, uint16_t ch) {
130 :
"c" (length),
"d" (ch),
"b" (((y << 8) | x)),
"Rah" ((uint8_t) 0x08)
144 :
"b" (index),
"Rah" ((uint8_t) 0x09)
158 :
"Rah" ((uint8_t) 0x0A)
186 :
"a" ((uint16_t) (((0x0E) << 8) | (
id & 0xFF)))
199 :
"Rah" ((uint8_t) 0x0F)
213 :
"a" ((uint16_t) (((0x10) << 8) | (value & 0xFF)))
226 :
"Rah" ((uint8_t) 0x11)
237 :
"b" (((y << 8) | x)),
"c" (((height << 8) | width)),
"Rah" ((uint8_t) 0x12)
247 :
"Rah" ((uint8_t) 0x13)
262 :
"b" (palette),
"c" (rate),
"Rah" ((uint8_t) 0x14)
272 :
"Rah" ((uint8_t) 0x15)
static uint32_t cursor_get_location(void)
static uint8_t text_get_screen(void)
static void cursor_display(uint8_t value)
static void text_fill_char(uint8_t x, uint8_t y, uint16_t length, uint16_t ch)
static void text_set_palette(uint16_t index)
void text_put_string(uint8_t x, uint8_t y, const char __far *str)
static uint16_t text_get_mode(void)
static void text_put_char(uint8_t x, uint8_t y, uint16_t ch)
static void text_screen_init(void)
static void text_window_init(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint16_t base)
static void cursor_set_location(uint8_t x, uint8_t y, uint8_t width, uint8_t height)
static uint16_t cursor_get_type(void)
static void text_put_numeric(uint8_t x, uint8_t y, uint8_t width, uint8_t flags, uint16_t value)
static void cursor_set_type(uint8_t palette, uint8_t rate)
static uint8_t cursor_status(void)
void text_put_substring(uint8_t x, uint8_t y, const char __far *str, uint16_t length)
void text_set_ank_font(uint8_t start, uint8_t depth, uint16_t count, const void __far *data)
static void text_set_mode(uint16_t value)
static void text_set_screen(uint8_t id)
static uint16_t text_get_palette(void)
void text_get_fontdata(uint16_t ch, void __far *data)