aboutsummaryrefslogtreecommitdiff
path: root/src/addrs.h
blob: dd9f23d453465d234d79e947258f0beb08f0f251 (plain)
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
#define FONT_ADDR_HI 0x80
#define DLIST_TOP_ADDR 0xbfa0
#define DLIST_BOT_ADDR 0xbfd0

#define u8 unsigned char
#define u8p(x) ((unsigned char *)x)
#define u16 unsigned int
#define u16p(x) ((unsigned int *)x)

/* dlist_bot is the main one, dlist_top is used when
   scrolled back. */
extern u8 *dlist_top, *dlist_bot;

extern u16 *dlist_top_lms;
extern u16 *dlist_bot_lms;

/* points to either edit_box or one of the status_boxes[] */
extern u16 *dlist_status_lms;

/* only one of these (not one per screen) */
extern u8 *edit_box;

/* used for scrollback */
extern u8 *screen_top_addrs[7];

/* normal (non-scrollback) display */
extern u8 *screen_bot_addrs[7];

/* address of last line of _bot, where printing actually happens */
extern u8 *screen_lastlines[7];

/* bottom 2 lines of the _bot display list for each screen */
extern u8 *status_boxes[7];