aboutsummaryrefslogtreecommitdiff
path: root/src/addrs.c
blob: b9f09219b1bd87326604eab9c41cdbe3d62ff51f (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "addrs.h"

u8 *dlist_top = u8p(DLIST_TOP_ADDR);
u8 *dlist_bot = u8p(DLIST_BOT_ADDR);

u16 *dlist_top_lms = u16p(0xbfa4);
u16 *dlist_bot_lms = u16p(0xbfd4);
u16 *dlist_status_lms = u16p(0xbfee);
u8 *dlist_last_line = u8p(0xbff0);

u8 *edit_box = u8p(0x0600); /* up to 256 bytes (page 6) */
u8 *edbox_only_dlist = u8p(0x8fb8);
u8 *rx_buf = u8p(0xa000); /* 512 bytes */
u8 *tx_buf = u8p(0xa200); /* 512 bytes */

/* 1000 bytes (25 40-char lines) apiece. */
u8 *screen_top_addrs[7] = {
	u8p(0x8400),
	u8p(0x87e8),
	u8p(0x8bd0),
	u8p(0x9000),
	u8p(0x93e8),
	u8p(0x97d0),
	u8p(0x9bb8)
};

/* 1000 bytes (25 40-char lines) apiece. */
u8 *screen_bot_addrs[7] = {
	u8p(0xa400),
	u8p(0xa7e8),
	u8p(0xabd0),
	u8p(0xb000),
	u8p(0xb3e8),
	u8p(0xb7d0),
	u8p(0xbbb8)
};

/* 40 bytes (1 line), third from the bottom of each _bot_addr */
u8 *screen_lastlines[7] = {
	u8p(0xa770),
	u8p(0xab58),
	u8p(0xaf40),
	u8p(0xb370),
	u8p(0xb758),
	u8p(0xbb40),
	u8p(0xbf28)
};

/* 60 bytes, 1 GR.0 line and 1 GR.1 line. also 20 more bytes filler.
   this is the bottom 2 lines of screen 0.
   screens 1-6 actually have 80 bytes of free RAM
   at the bottom (2 unused lines), for now at least. addresses:
   0xab80 0xaf68 0xb398 0xb780 0xbb68 0xbf50 */
u8 *status_box = (u8 *)0xa798;