blob: 3ae4dd414eccc89a0e9d3d1c9ec7946be6078d03 (
plain) (
blame)
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
|
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
///////////////////////////////////////////
// All the macros that are fit to print. //
///////////////////////////////////////////
#ifndef __DSP56_DEF_H__
#define __DSP56_DEF_H__
#include "dsp56156.h"
namespace DSP_56156
{
/***************************************************************************
ALU
***************************************************************************/
#define X cpustate->ALU.x.d
#define X1 cpustate->ALU.x.w.h
#define X0 cpustate->ALU.x.w.l
#define Y cpustate->ALU.y.d
#define Y1 cpustate->ALU.y.w.h
#define Y0 cpustate->ALU.y.w.l
#define A cpustate->ALU.a.q
#define A2 cpustate->ALU.a.b.h4
#define A1 cpustate->ALU.a.w.h
#define A0 cpustate->ALU.a.w.l
#define B cpustate->ALU.b.q
#define B2 cpustate->ALU.b.b.h4
#define B1 cpustate->ALU.b.w.h
#define B0 cpustate->ALU.b.w.l
/***************************************************************************
AGU
***************************************************************************/
#define R0 cpustate->AGU.r0
#define R1 cpustate->AGU.r1
#define R2 cpustate->AGU.r2
#define R3 cpustate->AGU.r3
#define N0 cpustate->AGU.n0
#define N1 cpustate->AGU.n1
#define N2 cpustate->AGU.n2
#define N3 cpustate->AGU.n3
#define M0 cpustate->AGU.m0
#define M1 cpustate->AGU.m1
#define M2 cpustate->AGU.m2
#define M3 cpustate->AGU.m3
#define TEMP cpustate->AGU.temp
} // namespace DSP_56156
#endif
|