test_rom.h
1.93 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*************************************************************
test_rom.h : Nintendo 64 Music Tools Library Sample
(c) Copyright 1998, Software Creations (Holdings) Ltd.
Version 3.11
TESTMENU main header file.
**************************************************************/
#ifndef _TEST_ROM_H_
#define _TEST_ROM_H_
/* Stacksize in bytes */
#define STACKSIZE 0x2000
/* RSP segments */
#define CFB_SEG 1
/* end of 'makerom' section */
#ifndef SPECFILE
#include <ultra64.h>
/* Message queue lengths */
#define MAX_MESGS 8
#define PI_MSGQUEUE_SIZE 8
#define DMA_MSGQUEUE_SIZE 1
#define RDPDONE_MSGQUEUE_SIZE 1
#define RETRACE_MSGQUEUE_SIZE 1
/* Thread priorities */
#define MAIN_PRIORITY 10
#define GAME_PRIORITY 10
#define SCHEDULER_PRIORITY 127
/* size of screen */
#define SCREEN_XSIZE 320
#define SCREEN_YSIZE 240
/* fifo buffer size */
#define FIFO_DATA_SIZE (16*1024)
/* externals from 'test_workspace.c' */
extern unsigned short cfb_A[];
extern unsigned short cfb_B[];
extern u64 yield_buffer[];
extern u64 fifo_buffer[];
/* drawing pointers */
extern Vtx *vertp;
extern u64 *glistp;
/* tune buffers in RAM */
extern int tune_buffer1[];
extern int tune_buffer2[];
extern int tune_buffer3[];
extern int tune_buffer4[];
/* sound effect buffer in RAM */
extern int sfx_buffer1[];
/* controller related vars */
extern OSMesgQueue serial_queue;
extern OSContPad controllerdata[];
/* --------------- FUNCTION PROTOTYPES ------------------ */
/* functions from 'test_main.c' */
void DmaRomToRam (void *rom, void *ram, int len);
void DownloadSongs (void);
/* functions from 'test_menu.c' */
void MenuProcess (void);
void MenuInit (void);
void MenuProcessController (void);
/* functions from 'test_draw.c' */
void DrawString (char *text, int x, int y);
void DrawChar (unsigned short *letter, int x, int y);
#endif /* SPECFILE */
#endif /* _TEST_ROM_H_ */
/* end of file */