localdef.h
1.27 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
/*======================================================================*/
/* NuSYS high resolution sample */
/* localdef.h */
/* */
/* Copyright (C) 1997, NINTENDO Co,Ltd. */
/* 97/12/12 Created by Kensaku Ohki(SLANP) */
/*======================================================================*/
#ifndef _LOCALDEF_H_
#define _LOCALDEF_H_
#define MAIN_HIGH 0x0000
#define MAIN_LOW 0x0001
#define MAIN_DUMMY 0xFFFF
#define AUDIO_HEAP_SIZE 0x80000
#define ZBUFFER_ADDR (0x80400000-AUDIO_HEAP_SIZE-640*480*2*3)
#define CFB_HIGH_ADDR0 (0x80400000-AUDIO_HEAP_SIZE-640*480*2*2)
#define CFB_HIGH_ADDR1 (0x80400000-AUDIO_HEAP_SIZE-640*480*2*1)
#define CFB_LOW_ADDR0 (0x80400000-AUDIO_HEAP_SIZE-320*240*2*3)
#define CFB_LOW_ADDR1 (0x80400000-AUDIO_HEAP_SIZE-320*240*2*2)
#define CFB_LOW_ADDR2 (0x80400000-AUDIO_HEAP_SIZE-320*240*2*1)
#define AUDIO_HEAP_ADDR (0x80400000-AUDIO_HEAP_SIZE)
/*
* WAVE データセグメントの extern 宣言用マクロ
*/
#define EXTERN_SEGMENT(name) \
extern char _##name##SegmentStart[], _##name##SegmentEnd[], \
_##name##SegmentRomStart[], _##name##SegmentRomEnd[]
EXTERN_SEGMENT(code);
extern u8 _himageSegmentRomStart[], _himageSegmentRomEnd[];
extern u8 _limageSegmentRomStart[], _limageSegmentRomEnd[];
#endif /* _LOCALDEF_H_*/