-
Notifications
You must be signed in to change notification settings - Fork 8
/
hal.h
39 lines (34 loc) · 1.27 KB
/
hal.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
33
34
35
36
37
38
39
////////////////////////////////////
// FDC I/O //
////////////////////////////////////
int init_fdc(int drive);
void deinit_fdc();
int get_start_unit(char * path);
int jumptotrack(unsigned char t);
int readsector(unsigned char sectornum,unsigned char * data,unsigned char invalidate_cache);
int writesector(unsigned char sectornum,unsigned char * data);
/////////////////////////////////////
// Keyboard / Joystick / mouse I/O //
/////////////////////////////////////
unsigned char Keyboard();
unsigned char wait_function_key();
unsigned char get_char();
void disablemousepointer();
////////////////////////////////////
// Screen
////////////////////////////////////
int init_display(ui_context * ctx);
void chg_video_conf(ui_context * ctx);
void set_char_pos(ui_context * ctx,int col, int line);
void print_char(ui_context * ctx, unsigned char c, int mode);
void clear_line(ui_context * ctx, int line, int mode);
int restore_display(ui_context * ctx);
////////////////////////////////////
// System //
////////////////////////////////////
void reboot();
int return_to_system(ui_context * ctx);
void waitsec(int secs);
void waitms(int ms);
void lockup();
int process_command_line(int argc, char* argv[]);