Annotation of hatari/src/falcon/dsp_cpu.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  *  Dsp56K emulation kernel
                      3:  *
                      4:  *  ARAnyM (C) 2003 Patrice Mandin
                      5:  *  Adaption to Hatari (C) 2006 by Thomas Huth
                      6:  *
                      7:  *  This program is free software; you can redistribute it and/or modify
                      8:  *  it under the terms of the GNU General Public License as published by
                      9:  *  the Free Software Foundation; either version 2 of the License, or
                     10:  *  (at your option) any later version.
                     11:  *
                     12:  *  This program is distributed in the hope that it will be useful,
                     13:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15:  *  GNU General Public License for more details.
                     16:  *
                     17:  *  You should have received a copy of the GNU General Public License
                     18:  *  along with this program; if not, write to the Free Software
                     19:  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                     20:  */
                     21: 
                     22: #ifndef _DSP_CPU_H_
                     23: #define _DSP_CPU_H_
                     24: 
                     25: /* Defines */
                     26: #define DSP_OMR_MA     0x00
                     27: #define DSP_OMR_MB     0x01
                     28: #define DSP_OMR_DE     0x02
                     29: #define DSP_OMR_SD     0x06
                     30: #define DSP_OMR_EA     0x07
                     31: 
                     32: #define DSP_SR_C       0x00
                     33: #define DSP_SR_V       0x01
                     34: #define DSP_SR_Z       0x02
                     35: #define DSP_SR_N       0x03
                     36: #define DSP_SR_U       0x04
                     37: #define DSP_SR_E       0x05
                     38: #define DSP_SR_L       0x06
                     39: 
                     40: #define DSP_SR_I0      0x08
                     41: #define DSP_SR_I1      0x09
                     42: #define DSP_SR_S0      0x0a
                     43: #define DSP_SR_S1      0x0b
                     44: #define DSP_SR_T       0x0d
                     45: #define DSP_SR_LF      0x0f
                     46: 
                     47: /* Registers numbers in dsp.registers[] */
                     48: #define DSP_REG_X0     0x04
                     49: #define DSP_REG_X1     0x05
                     50: #define DSP_REG_Y0     0x06
                     51: #define DSP_REG_Y1     0x07
                     52: #define DSP_REG_A0     0x08
                     53: #define DSP_REG_B0     0x09
                     54: #define DSP_REG_A2     0x0a
                     55: #define DSP_REG_B2     0x0b
                     56: #define DSP_REG_A1     0x0c
                     57: #define DSP_REG_B1     0x0d
                     58: #define DSP_REG_A      0x0e
                     59: #define DSP_REG_B      0x0f
                     60: 
                     61: #define DSP_REG_R0     0x10
                     62: #define DSP_REG_R1     0x11
                     63: #define DSP_REG_R2     0x12
                     64: #define DSP_REG_R3     0x13
                     65: #define DSP_REG_R4     0x14
                     66: #define DSP_REG_R5     0x15
                     67: #define DSP_REG_R6     0x16
                     68: #define DSP_REG_R7     0x17
                     69: 
                     70: #define DSP_REG_N0     0x18
                     71: #define DSP_REG_N1     0x19
                     72: #define DSP_REG_N2     0x1a
                     73: #define DSP_REG_N3     0x1b
                     74: #define DSP_REG_N4     0x1c
                     75: #define DSP_REG_N5     0x1d
                     76: #define DSP_REG_N6     0x1e
                     77: #define DSP_REG_N7     0x1f
                     78: 
                     79: #define DSP_REG_M0     0x20
                     80: #define DSP_REG_M1     0x21
                     81: #define DSP_REG_M2     0x22
                     82: #define DSP_REG_M3     0x23
                     83: #define DSP_REG_M4     0x24
                     84: #define DSP_REG_M5     0x25
                     85: #define DSP_REG_M6     0x26
                     86: #define DSP_REG_M7     0x27
                     87: 
                     88: #define DSP_REG_SR     0x39
                     89: #define DSP_REG_OMR    0x3a
                     90: #define DSP_REG_SP     0x3b
                     91: #define DSP_REG_SSH    0x3c
                     92: #define DSP_REG_SSL    0x3d
                     93: #define DSP_REG_LA     0x3e
                     94: #define DSP_REG_LC     0x3f
                     95: 
                     96: #define DSP_REG_NULL   0x00
                     97: #define DSP_REG_LCSAVE 0x30
                     98: 
                     99: /* Memory spaces for dsp.ram[], dsp.rom[] */
                    100: #define DSP_SPACE_X    0x00
                    101: #define DSP_SPACE_Y    0x01
                    102: #define DSP_SPACE_P    0x02
                    103: 
                    104: /* Functions */
                    105: int dsp56k_do_execute(void *);
                    106: 
                    107: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.