~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to mess/src/emu/cpu/tms32025/tms32025.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 /**************************************************************************\
2
 
 *                Texas Instruments TMS320x25 DSP Emulator                  *
3
 
 *                                                                          *
4
 
 *                 Copyright Tony La Porta                                  *
5
 
 *                      Written for the MAME project.                       *
6
 
 *                                                                          *
7
 
 *      Note :  This is a word based microcontroller, with addressing       *
8
 
 *              architecture based on the Harvard addressing scheme.        *
9
 
 *                                                                          *
10
 
 *  Three versions of the chip are available, and they are:                 *
11
 
 *  TMS320C25   Internal ROM one time programmed at TI                      *
12
 
 *  TMS320E25   Internal ROM programmable as a normal EPROM                 *
13
 
 *  TMS320P25   Internal ROM programmable once as a normal EPROM only       *
14
 
 *  These devices can also be used as a MicroController with external ROM   *
15
 
 *                                                                          *
16
 
 \***************************************************************************/
17
 
 
18
 
#pragma once
19
 
 
20
 
#ifndef __TMS32025_H__
21
 
#define __TMS32025_H__
22
 
 
23
 
 
24
 
 
25
 
 
26
 
#define TMS32025_BIO            0x10000         /* BIO input  */
27
 
#define TMS32025_HOLD           0x10001         /* HOLD input */
28
 
#define TMS32025_HOLDA          0x10001         /* HOLD Acknowledge output */
29
 
#define TMS32025_XF                     0x10002         /* XF output  */
30
 
#define TMS32025_DR                     0x10003         /* Serial Data  Receive  input  */
31
 
#define TMS32025_DX                     0x10003         /* Serial Data  Transmit output */
32
 
 
33
 
 
34
 
 
35
 
/****************************************************************************
36
 
 *  Interrupt constants
37
 
 */
38
 
 
39
 
#define TMS32025_INT0                     0                     /* External INT0 */
40
 
#define TMS32025_INT1                     1                     /* External INT1 */
41
 
#define TMS32025_INT2                     2                     /* External INT2 */
42
 
#define TMS32025_TINT                     3                     /* Internal Timer interrupt */
43
 
#define TMS32025_RINT                     4                     /* Serial Port receive  interrupt */
44
 
#define TMS32025_XINT                     5                     /* Serial Port transmit interrupt */
45
 
#define TMS32025_TRAP                     6                     /* Trap instruction */
46
 
#define TMS32025_INT_NONE                 -1
47
 
 
48
 
/* Non-irq line */
49
 
#define TMS32025_FSX                      7                     /* Frame synchronisation */
50
 
 
51
 
enum
52
 
{
53
 
        TMS32025_PC=1,
54
 
        TMS32025_PFC,  TMS32025_STR0, TMS32025_STR1, TMS32025_IFR,
55
 
        TMS32025_RPTC, TMS32025_ACC,  TMS32025_PREG, TMS32025_TREG,
56
 
        TMS32025_AR0,  TMS32025_AR1,  TMS32025_AR2,  TMS32025_AR3,
57
 
        TMS32025_AR4,  TMS32025_AR5,  TMS32025_AR6,  TMS32025_AR7,
58
 
        TMS32025_STK0, TMS32025_STK1, TMS32025_STK2, TMS32025_STK3,
59
 
        TMS32025_STK4, TMS32025_STK5, TMS32025_STK6, TMS32025_STK7,
60
 
        TMS32025_DRR,  TMS32025_DXR,  TMS32025_TIM,  TMS32025_PRD,
61
 
        TMS32025_IMR,  TMS32025_GREG
62
 
};
63
 
 
64
 
 
65
 
/****************************************************************************
66
 
 *  Public Functions
67
 
 */
68
 
 
69
 
DECLARE_LEGACY_CPU_DEVICE(TMS32025, tms32025);
70
 
DECLARE_LEGACY_CPU_DEVICE(TMS32026, tms32026);
71
 
 
72
 
CPU_DISASSEMBLE( tms32025 );
73
 
 
74
 
#endif  /* __TMS32025_H__ */