-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfdisk_screen.h
64 lines (53 loc) · 1.9 KB
/
fdisk_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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#define SCREEN_ADDRESS (0x8000U)
#define CHARSET_ADDRESS (0x8800U)
#define COLOUR_RAM_ADDRESS (0x1f800)
#define FOOTER_ADDRESS (SCREEN_ADDRESS + 24 * 80)
#define FOOTER_COPYRIGHT 0
#define FOOTER_BLANK 1
#define FOOTER_FATAL 2
#define FOOTER_MAX 2
#define ATTRIB_REVERSE 0x20
#define ATTRIB_BLINK 0x10
#define ATTRIB_UNDERLINE 0x80
#define ATTRIB_HIGHLIGHT 0x40
#define COLOUR_BLACK 0
#define COLOUR_WHITE 1
#define COLOUR_RED 2
#define COLOUR_CYAN 3
#define COLOUR_PURPLE 4
#define COLOUR_GREEN 5
#define COLOUR_BLUE 6
#define COLOUR_YELLOW 7
#define COLOUR_ORANGE 8
#define COLOUR_BROWN 9
#define COLOUR_PINK 10
#define COLOUR_GREY1 11
#define COLOUR_DARKGREY 11
#define COLOUR_GREY2 12
#define COLOUR_GREY 12
#define COLOUR_MEDIUMGREY 12
#define COLOUR_LIGHTGREEN 13
#define COLOUR_LIGHTBLUE 14
#define COLOUR_GREY3 15
#define COLOUR_LIGHTGREY 15
void setup_screen(void);
void display_footer(unsigned char index);
void footer_save(void);
void footer_restore(void);
void display_buffer_position_footer(char bid);
void screen_colour_line(unsigned char line, unsigned char colour);
#define screen_colour_line_segment(LA, W, C) lfill(LA + (0x1f800 - SCREEN_ADDRESS), C, W)
void screen_hex(unsigned int addr, long value);
void screen_hex_byte(unsigned int addr, long value);
void screen_decimal(unsigned int addr, unsigned int value);
void set_screen_attributes(long p, unsigned char count, unsigned char attr);
void write_line(char *s, char col);
void recolour_last_line(char colour);
char read_line(char *buffer, unsigned char maxlen);
void format_decimal(const unsigned int addr, const int value, const char columns);
void format_hex(const unsigned int addr, const long value, const char columns);
extern long screen_line_address;
extern unsigned char ascii_map[256];
#define ascii_to_screen(X) ascii_map[X]
void fatal_error(unsigned char *filename, unsigned int line_number);
#define FATAL_ERROR fatal_error(__FILE__, __LINE__)