1 /*
2   Head
3   Encapsulate the header
4   JBS 15 June 1994
5 */
6 
7 #ifndef _HEAD_
8 
9 #define _HEAD_
10 
11 #include "config.h"
12 #include "types.h"
13 
14 typedef enum
15 {
16 #if EARLY
17   VERSION_1 = 1,
18   VERSION_2 = 2,
19 #endif
20   VERSION_3 = 3,
21   VERSION_4 = 4,
22   VERSION_5 = 5,
23   VERSION_6 = 6,
24   VERSION_7 = 7,
25   VERSION_8 = 8
26 } version;
27 
28 void hd_no_colour(void);
29 
30 int hd_open(char *);
31 void hd_close(void);
32 void hd_load(word, word, byte *);
33 void hd_flip(word, byte *);
34 
35 void hd_init(void);
36 void hd_set_size(int, int);
37 int hd_width(void);
38 int hd_height(void);
39 word hd_resident_blocks(void);
40 word hd_verify(void);
41 word hd_save_blocks(void);
42 word hd_start(void);
43 byte hd_mode(void);
44 void hd_set_screen(void);
45 word hd_check(void);
46 void hd_set_script(int);
47 void hd_set_fixed(int);
48 bool hd_get_script(void);
49 bool hd_get_fixed(void);
50 void hd_err_script(void);
51 word hd_object(void);
52 word hd_global(void);
53 word hd_common(void);
54 word hd_vocab(void);
55 
56 version hd_version(void);
57 
58 int hd_plus(void);
59 int hd_five(void);
60 
61 word hd_code_offset(void);
62 word hd_text_offset(void);
63 
64 void hd_request_status(void);
65 
66 #endif
67