2ee739cc |
1 | /* |
2 | * screen.h |
3 | * |
4 | * [Generated from screen, 25 September 1996] |
5 | */ |
6 | |
7 | #if !defined(__CC_NORCROFT) || !defined(__arm) |
8 | #error You must use the Norcroft ARM Compiler for Sapphire programs |
9 | #endif |
10 | |
11 | #pragma include_only_once |
12 | #pragma force_top_level |
13 | |
14 | #ifndef __screen_h |
15 | #define __screen_h |
16 | |
17 | #ifndef __sapphire_h |
18 | #include "sapphire.h" |
19 | #endif |
20 | |
21 | /*----- Overview ----------------------------------------------------------* |
22 | * |
23 | * Functions provided: |
24 | * |
25 | * screen_getInfo |
26 | * screen_cache |
27 | * screen_justChangedMode |
28 | * screen_init |
29 | */ |
30 | |
31 | /* --- screen_getInfo --- * |
32 | * |
33 | * On entry: -- |
34 | * |
35 | * On exit: R0 == pointer to screen information block |
36 | * |
37 | * Use: This call returns a pointer to a block of information |
38 | * about the current screen modes. The format of this block |
39 | * is defined above. |
40 | */ |
41 | |
42 | extern routine screen_getInfo; |
43 | |
44 | /* --- screen_cache --- * |
45 | * |
46 | * On entry: R12 points to workspace |
47 | * |
48 | * On exit: -- |
49 | * |
50 | * Use: Caches screen information for the current mode. |
51 | */ |
52 | |
53 | extern routine screen_cache; |
54 | |
55 | /* --- screen_justChangedMode --- * |
56 | * |
57 | * On entry: -- |
58 | * |
59 | * On exit: CS if last event was a mode change, CC otherwise |
60 | * |
61 | * Use: Informs the caller if the last event was a mode change. |
62 | * The system ignores open window requests when making it's |
63 | * decision. |
64 | */ |
65 | |
66 | extern routine screen_justChangedMode; |
67 | |
68 | /* --- screen_init --- * |
69 | * |
70 | * On entry: -- |
71 | * |
72 | * On exit: -- |
73 | * |
74 | * Use: Initialises the screen unit. |
75 | */ |
76 | |
77 | extern routine screen_init; |
78 | |
79 | /*----- Data offsets ------------------------------------------------------*/ |
80 | |
81 | #define screen_xEig 0 |
82 | #define screen_yEig 4 |
83 | #define screen_bpp 8 |
84 | #define screen_width 12 |
85 | #define screen_height 16 |
86 | #define screen_dx 20 |
87 | #define screen_dy 24 |
88 | |
89 | /*----- That's all, folks -------------------------------------------------*/ |
90 | |
91 | #endif |