#include "conio.h" #include #define redbus 0x0300 int conid = 0x01; void conprint(char str[], int x, int y, int mode){ con = (Console*)redbus; rb_map_device(conid); str_size = strlen(str); con->cursor_mode = mode; line = y; con->line = line; for (i = 0; i < str_size; i++){ if (((y % 50) + (x + i) / 80) != line) { line = (y % 50) + (x + i) / 80; con->line = line; } con->display[(int)(x + i) % 80] = str[i]; } } void set_conid(int id){ conid = id; } int get_conid(){ return conid; }