-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.h
32 lines (25 loc) · 917 Bytes
/
screen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _SCREEN_H_
#define _SCREEN_H_
#include "common.h"
#define VID_MEM 0xB8000
void clear_screen( );
void set_cursor( ulong x, ulong y );
void set_font( ulong font );
void save_cursor( );
void restore_cursor( );
void print_char( char c );
void print_str( char *s );
void print_dec( ulong num );
void print_dec_64( unsigned long long num );
void print_dec_ra( ulong num, ulong len, char fill );
void print_hex( ulong num );
void print_char_xy( ulong x, ulong y, char c );
void print_str_xy( ulong x, ulong y, char *s );
void print_dec_xy( ulong x, ulong y, ulong num );
void print_dec_ra_xy( ulong x, ulong y, ulong num, ulong len, char fill );
void print_hex_xy( ulong x, ulong y, ulong num );
void print_hex_64( ulong64 num );
void print_hex_64_xy( ulong x, ulong y, ulong64 num );
void printf( char *format, ... );
void printf_xy( int x, int y, char *format, ... );
#endif