Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/vbanext/constarrays.h
2 views
1
#ifndef CONSTARRAYS_H
2
#define CONSTARRAYS_H
3
4
static float const apu_vols [4] = { -0.25f, -0.5f, -1.0f, -0.25f };
5
6
static const int daysinmonth[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
7
8
static const int table [0x40] =
9
{
10
0xFF10, 0,0xFF11,0xFF12,0xFF13,0xFF14, 0, 0,
11
0xFF16,0xFF17, 0, 0,0xFF18,0xFF19, 0, 0,
12
0xFF1A, 0,0xFF1B,0xFF1C,0xFF1D,0xFF1E, 0, 0,
13
0xFF20,0xFF21, 0, 0,0xFF22,0xFF23, 0, 0,
14
0xFF24,0xFF25, 0, 0,0xFF26, 0, 0, 0,
15
0, 0, 0, 0, 0, 0, 0, 0,
16
0xFF30,0xFF31,0xFF32,0xFF33,0xFF34,0xFF35,0xFF36,0xFF37,
17
0xFF38,0xFF39,0xFF3A,0xFF3B,0xFF3C,0xFF3D,0xFF3E,0xFF3F,
18
};
19
20
static const uint32_t TIMER_TICKS[4] = {0, 6, 8, 10};
21
22
static const uint8_t gamepakRamWaitState[4] = { 4, 3, 2, 8 };
23
24
static const uint32_t objTilesAddress [3] = {0x010000, 0x014000, 0x014000};
25
26
static const u32 AlphaClampLUT[64] =
27
{
28
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
29
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F,
30
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F,
31
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F
32
};
33
34
static const u32 map_sizes_rot[] = { 128, 256, 512, 1024 };
35
36
static const u32 map_widths[] = { 256, 512, 256, 512 };
37
static const u32 map_heights[] = { 256, 256, 512, 512 };
38
39
40
static const int coeff[32] = {0,1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
41
11, 12, 13, 14, 15, 16, 16, 16, 16,
42
16, 16, 16, 16, 16, 16, 16, 16, 16,
43
16, 16, 16};
44
45
46
static const uint8_t memoryWait_init[16] =
47
{ 0, 0, 2, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 0 };
48
static const uint8_t memoryWaitSeq_init[16] =
49
{ 0, 0, 2, 0, 0, 0, 0, 0, 2, 2, 4, 4, 8, 8, 4, 0 };
50
static const uint8_t memoryWait32_init[16] =
51
{ 0, 0, 5, 0, 0, 1, 1, 0, 7, 7, 9, 9, 13, 13, 4, 0 };
52
static const uint8_t memoryWaitSeq32_init[16] =
53
{ 0, 0, 5, 0, 0, 1, 1, 0, 5, 5, 9, 9, 17, 17, 4, 0 };
54
55
#endif
56
57