示例#1
0
文件: video.c 项目: aralbrec/FUZIX
void cursor_on(int8_t y, int8_t x)
{
	map_for_video();
	curpty->csave = *(char_addr(y, x)+1);
	curpty->cpos = char_addr(y, x)+1;
		*curpty->cpos = *curpty->cpos ^ 0x3f;
	map_for_kernel();
}
示例#2
0
文件: vt.c 项目: davidgiven/FUZIX
void clear_across(int8_t y, int8_t x, int16_t l)
{
	char_addr(y, x);
	vtcount = l;
	vtchar = ' ';
	vwrite();
}
示例#3
0
文件: vt.c 项目: davidgiven/FUZIX
void clear_lines(int8_t y, int8_t ct)
{
	char_addr(y, 0);
	vtcount = ct * (uint16_t)VT_WIDTH;
	vtchar = ' ';
	vwrite();
}
示例#4
0
文件: vt.c 项目: davidgiven/FUZIX
void plot_char(int8_t y, int8_t x, uint16_t c)
{
        char_addr(y,x);
        vtcount = 1;
        vtchar = c;
        vwrite();
}
示例#5
0
文件: video.c 项目: aralbrec/FUZIX
void plot_char(int8_t y, int8_t x, uint16_t c)
{
	char *p=char_addr(y,x);
	map_for_video();
	*p++ = VT_MAP_CHAR(c);
	*p = curpty->attr;
	map_for_kernel();
}
示例#6
0
文件: video.c 项目: aralbrec/FUZIX
void clear_across(int8_t y, int8_t x, int16_t l)
{
	map_for_video();
	uint16_t *s = (uint16_t *)char_addr(y, x);
	uint16_t w=' ' * 0x100 + curpty->attr;
	while( l-- )
		*s++=w;
	map_for_kernel();
}
示例#7
0
文件: video.c 项目: aralbrec/FUZIX
void clear_lines(int8_t y, int8_t ct)
{
	uint16_t wc= ct * VT_WIDTH;
	map_for_video();
	uint16_t *s = (uint16_t *)char_addr(y, 0);
	uint16_t w = ' ' * 0x100 + curpty->attr;
	while(  wc-- )
		*s++=w;
	map_for_kernel();
}
示例#8
0
文件: vt.c 项目: Rappalot/FUZIX
void clear_across(int8_t y, int8_t x, int16_t l)
{
	unsigned char *s = char_addr(y, x);
	memset(s, ' ', l);
}
示例#9
0
文件: vt.c 项目: Rappalot/FUZIX
void clear_lines(int8_t y, int8_t ct)
{
	unsigned char *s = char_addr(y, 0);
	memset(s, ' ', ct * VT_WIDTH);
}
示例#10
0
文件: vt.c 项目: Rappalot/FUZIX
void plot_char(int8_t y, int8_t x, uint16_t c)
{
	*char_addr(y, x) = VT_MAP_CHAR(c);
}
示例#11
0
文件: vt.c 项目: Rappalot/FUZIX
void cursor_on(int8_t y, int8_t x)
{
	cpos = char_addr(y, x);
	csave = *cpos;
	*cpos = VT_MAP_CHAR('_');
}
示例#12
0
文件: vt.c 项目: davidgiven/FUZIX
void cursor_on(int8_t y, int8_t x)
{
	char_addr(y,x);
	do_cursor_on();
}
示例#13
0
文件: vc.c 项目: EtchedPixels/FUZIX
void vc_plot_char(int8_t y, int8_t x, uint16_t c)
{
	vc_write_char(char_addr(y, x), VT_MAP_CHAR(c));
}
示例#14
0
文件: vc.c 项目: EtchedPixels/FUZIX
void vc_cursor_on(int8_t y, int8_t x)
{
	cpos[VC] = char_addr(y, x);
	csave[VC] = vc_read_char(cpos[VC]);
	vc_write_char(cpos[VC], 0x80);	/* black square */
}