-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory.inc
More file actions
63 lines (54 loc) · 1.79 KB
/
memory.inc
File metadata and controls
63 lines (54 loc) · 1.79 KB
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
// $7000
DATA_BASE = $7C00;
SCR_TITLE_ADDR = DATA_BASE;
SCR_TITLE_SIZE = 520;
SCR_STATUSBAR_ADDR = SCR_TITLE_ADDR + SCR_TITLE_SIZE;
SCR_STATUSBAR_SIZE = 80;
SCROLL_DATA_ADDR = $7E58;
STRINGS_PointerS_ADDR = $8000;
STRINGS_DATA_ADDR = STRINGS_PointerS_ADDR + $0f;
// $9000
PMG_BASE = $90;
PMG_ADDR = (PMG_BASE * $100)+$400;
LOGO_ADDR = PMG_BASE*$100; // shown only once before PMG use!
// $9800
G2F_SCREEN = $9800;
G2F_PMG = $9980;
G2F_TITLE_PMG = G2F_PMG+$18;
SPRITES_ADDR = $9B00;
SPRITES1_ADDR = SPRITES_ADDR;
SPRITES2_ADDR = SPRITES_ADDR+$120;
PM_DATA_SIZE = 528;
LOGOS_DATA_ADDR = SPRITES_ADDR + PM_DATA_SIZE;
// $8000 - characters set
CHARSET5_PAGE = $84; // title (G2F)
CHARSET5_ADDR = CHARSET5_PAGE*$100;
// $A000 - characters set
CHARSET1_PAGE = $A0; // title (menu)
CHARSET1_ADDR = CHARSET1_PAGE*$100;
CHARSET2_PAGE = $A4; // letters
CHARSET2_ADDR = CHARSET2_PAGE*$100;
CHARSET3_PAGE = $A8; // game (only 512 Bytes)
CHARSET3_ADDR = CHARSET3_PAGE*$100;
CHARSET4_PAGE = $AC; // G2F Image Font
CHARSET4_ADDR = CHARSET4_PAGE*$100;
// $B000
BLOCKS_DEF_ADDR = $9E00;
BLOCKS_LIST_ADDR = $9F00;
BLOCK_ASM_ADDR = $8D00;
DLISTS_ADDR = $7B00;
DLIST_TITLE_ADDR = DLISTS_ADDR; // $1C
DLIST_GAME_ADDR = DLIST_TITLE_ADDR+$1C; // $1A
DLIST_READY_ADDR = DLIST_GAME_ADDR+$1A; // $16
DLIST_GAMEOVER_ADDR = DLIST_READY_ADDR+$16; // $15
DLIST_INTRO_ADDR = DLIST_GAMEOVER_ADDR+$15;// $19
DLIST_HISTORY_ADDR = DLIST_INTRO_ADDR+$19; // $18
// RAINBOW_ADDR = $7BF0;
SCREEN_BUFFER_ADDR = $B700;
SCREEN_ADDR = $B900;
// character sets
//
SCREEN_TITLE_SIZE = 640;
SCREEN_GAME_SIZE = 360;
SCREEN_BESTS_SIZE = 580;
SCREEN_HISTORY_SIZE = 580;