You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
521 B
C

#include "conio.h"
#include <string.h>
#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;
}