1 /* ======================================================================= */
3 /* ======================================================================= */
11 /* ----------------------------------------------------------------------- */
12 /* Cursor Position and Screen Buffering Functions */
13 /* ----------------------------------------------------------------------- */
15 unsigned char cursor_x
, cursor_y
;
16 static union REGS regs
;
18 void goto_xy(unsigned char x
, unsigned char y
)
24 int86(0x10, ®s
, ®s
);
27 void hide_cursor(void)
32 void cursor_position(void)
36 int86(0x10, ®s
, ®s
);
41 void clear_screen(void)
47 for (i
= 0; i
< NUM_ROWS
; i
++)
48 for (j
= 0; j
< 80; j
++)
55 void write_xyc(int x
, int y
, char c
)