src/mess/includes/gamecom.h
| r1486 | r1487 | |
| 1 | /***************************************************************************** |
| 2 | * |
| 3 | * Tiger Game.com |
| 4 | * |
| 5 | * Driver by Wilbert Pol |
| 6 | * |
| 7 | ****************************************************************************/ |
| 8 | |
| 1 | 9 | #ifndef __GAMECOM_H |
| 2 | | #define __GAMECOM_H |
| 10 | #define __GAMECOM_H |
| 3 | 11 | |
| 4 | | #include "mame.h" |
| 5 | | #include "sound/custom.h" |
| 12 | #include "driver.h" |
| 6 | 13 | |
| 14 | |
| 15 | /* SM8521 register addresses */ |
| 16 | enum |
| 17 | { |
| 18 | SM8521_R0 = 0x00, |
| 19 | SM8521_R1 = 0x01, |
| 20 | SM8521_R2 = 0x02, |
| 21 | SM8521_R3 = 0x03, |
| 22 | SM8521_R4 = 0x04, |
| 23 | SM8521_R5 = 0x05, |
| 24 | SM8521_R6 = 0x06, |
| 25 | SM8521_R7 = 0x07, |
| 26 | SM8521_R8 = 0x08, |
| 27 | SM8521_R9 = 0x09, |
| 28 | SM8521_R10 = 0x0A, |
| 29 | SM8521_R11 = 0x0B, |
| 30 | SM8521_R12 = 0x0C, |
| 31 | SM8521_R13 = 0x0D, |
| 32 | SM8521_R14 = 0x0E, |
| 33 | SM8521_R15 = 0x0F, |
| 34 | SM8521_IE0 = 0x10, |
| 35 | SM8521_IE1 = 0x11, |
| 36 | SM8521_IR0 = 0x12, |
| 37 | SM8521_IR1 = 0x13, |
| 38 | SM8521_P0 = 0x14, |
| 39 | SM8521_P1 = 0x15, |
| 40 | SM8521_P2 = 0x16, |
| 41 | SM8521_P3 = 0x17, |
| 42 | SM8521_18 = 0x18, /* reserved */ |
| 43 | SM8521_SYS = 0x19, |
| 44 | SM8521_CKC = 0x1A, |
| 45 | SM8521_1B = 0x1B, /* reserved */ |
| 46 | SM8521_SPH = 0x1C, |
| 47 | SM8521_SPL = 0x1D, |
| 48 | SM8521_PS0 = 0x1E, |
| 49 | SM8521_PS1 = 0x1F, |
| 50 | SM8521_P0C = 0x20, |
| 51 | SM8521_P1C = 0x21, |
| 52 | SM8521_P2C = 0x22, |
| 53 | SM8521_P3C = 0x23, |
| 54 | SM8521_MMU0 = 0x24, |
| 55 | SM8521_MMU1 = 0x25, |
| 56 | SM8521_MMU2 = 0x26, |
| 57 | SM8521_MMU3 = 0x27, |
| 58 | SM8521_MMU4 = 0x28, |
| 59 | SM8521_29 = 0x29, /* reserved */ |
| 60 | SM8521_2A = 0x2A, /* reserved */ |
| 61 | SM8521_URTT = 0x2B, |
| 62 | SM8521_URTR = 0x2C, |
| 63 | SM8521_URTS = 0x2D, |
| 64 | SM8521_URTC = 0x2E, |
| 65 | SM8521_2F = 0x2F, /* reserved */ |
| 66 | SM8521_LCDC = 0x30, |
| 67 | SM8521_LCH = 0x31, |
| 68 | SM8521_LCV = 0x32, |
| 69 | SM8521_33 = 0x33, /* reserved */ |
| 70 | SM8521_DMC = 0x34, |
| 71 | SM8521_DMX1 = 0x35, |
| 72 | SM8521_DMY1 = 0x36, |
| 73 | SM8521_DMDX = 0x37, |
| 74 | SM8521_DMDY = 0x38, |
| 75 | SM8521_DMX2 = 0x39, |
| 76 | SM8521_DMY2 = 0x3A, |
| 77 | SM8521_DMPL = 0x3B, |
| 78 | SM8521_DMBR = 0x3C, |
| 79 | SM8521_DMVP = 0x3D, |
| 80 | SM8521_3E = 0x3E, /* reserved */ |
| 81 | SM8521_3F = 0x3F, /* reserved */ |
| 82 | SM8521_SGC = 0x40, |
| 83 | SM8521_41 = 0x41, /* reserved */ |
| 84 | SM8521_SG0L = 0x42, |
| 85 | SM8521_43 = 0x43, /* reserved */ |
| 86 | SM8521_SG1L = 0x44, |
| 87 | SM8521_45 = 0x45, /* reserved */ |
| 88 | SM8521_SG0TH = 0x46, |
| 89 | SM8521_SG0TL = 0x47, |
| 90 | SM8521_SG1TH = 0x48, |
| 91 | SM8521_SG1TL = 0x49, |
| 92 | SM8521_SG2L = 0x4A, |
| 93 | SM8521_4B = 0x4B, /* reserved */ |
| 94 | SM8521_SG2TH = 0x4C, |
| 95 | SM8521_SG2TL = 0x4D, |
| 96 | SM8521_SGDA = 0x4E, |
| 97 | SM8521_4F = 0x4F, /* reserved */ |
| 98 | SM8521_TM0C = 0x50, |
| 99 | SM8521_TM0D = 0x51, |
| 100 | SM8521_TM1C = 0x52, |
| 101 | SM8521_TM1D = 0x53, |
| 102 | SM8521_CLKT = 0x54, |
| 103 | SM8521_55 = 0x55, /* reserved */ |
| 104 | SM8521_56 = 0x56, /* reserved */ |
| 105 | SM8521_57 = 0x57, /* reserved */ |
| 106 | SM8521_58 = 0x58, /* reserved */ |
| 107 | SM8521_59 = 0x59, /* reserved */ |
| 108 | SM8521_5A = 0x5A, /* reserved */ |
| 109 | SM8521_5B = 0x5B, /* reserved */ |
| 110 | SM8521_5C = 0x5C, /* reserved */ |
| 111 | SM8521_5D = 0x5D, /* reserved */ |
| 112 | SM8521_WDT = 0x5E, |
| 113 | SM8521_WDTC = 0x5F, |
| 114 | SM8521_SG0W0 = 0x60, |
| 115 | SM8521_SG0W1 = 0x61, |
| 116 | SM8521_SG0W2 = 0x62, |
| 117 | SM8521_SG0W3 = 0x63, |
| 118 | SM8521_SG0W4 = 0x64, |
| 119 | SM8521_SG0W5 = 0x65, |
| 120 | SM8521_SG0W6 = 0x66, |
| 121 | SM8521_SG0W7 = 0x67, |
| 122 | SM8521_SG0W8 = 0x68, |
| 123 | SM8521_SG0W9 = 0x69, |
| 124 | SM8521_SG0W10 = 0x6A, |
| 125 | SM8521_SG0W11 = 0x6B, |
| 126 | SM8521_SG0W12 = 0x6C, |
| 127 | SM8521_SG0W13 = 0x6D, |
| 128 | SM8521_SG0W14 = 0x6E, |
| 129 | SM8521_SG0W15 = 0x6F, |
| 130 | SM8521_SG1W0 = 0x70, |
| 131 | SM8521_SG1W1 = 0x71, |
| 132 | SM8521_SG1W2 = 0x72, |
| 133 | SM8521_SG1W3 = 0x73, |
| 134 | SM8521_SG1W4 = 0x74, |
| 135 | SM8521_SG1W5 = 0x75, |
| 136 | SM8521_SG1W6 = 0x76, |
| 137 | SM8521_SG1W7 = 0x77, |
| 138 | SM8521_SG1W8 = 0x78, |
| 139 | SM8521_SG1W9 = 0x79, |
| 140 | SM8521_SG1W10 = 0x7A, |
| 141 | SM8521_SG1W11 = 0x7B, |
| 142 | SM8521_SG1W12 = 0x7C, |
| 143 | SM8521_SG1W13 = 0x7D, |
| 144 | SM8521_SG1W14 = 0x7E, |
| 145 | SM8521_SG1W15 = 0x7F |
| 146 | }; |
| 147 | |
| 148 | |
| 7 | 149 | /*----------- defined in machine/gamecom.c -----------*/ |
| 8 | 150 | |
| 9 | 151 | extern MACHINE_RESET( gamecom ); |
| r1486 | r1487 | |
| 19 | 161 | extern void gamecom_handle_dma( int cycles ); |
| 20 | 162 | extern void gamecom_update_timers( int cycles ); |
| 21 | 163 | |
| 22 | | /* SM8521 register addresses */ |
| 23 | | #define SM8521_R0 0x00 |
| 24 | | #define SM8521_R1 0x01 |
| 25 | | #define SM8521_R2 0x02 |
| 26 | | #define SM8521_R3 0x03 |
| 27 | | #define SM8521_R4 0x04 |
| 28 | | #define SM8521_R5 0x05 |
| 29 | | #define SM8521_R6 0x06 |
| 30 | | #define SM8521_R7 0x07 |
| 31 | | #define SM8521_R8 0x08 |
| 32 | | #define SM8521_R9 0x09 |
| 33 | | #define SM8521_R10 0x0A |
| 34 | | #define SM8521_R11 0x0B |
| 35 | | #define SM8521_R12 0x0C |
| 36 | | #define SM8521_R13 0x0D |
| 37 | | #define SM8521_R14 0x0E |
| 38 | | #define SM8521_R15 0x0F |
| 39 | | #define SM8521_IE0 0x10 |
| 40 | | #define SM8521_IE1 0x11 |
| 41 | | #define SM8521_IR0 0x12 |
| 42 | | #define SM8521_IR1 0x13 |
| 43 | | #define SM8521_P0 0x14 |
| 44 | | #define SM8521_P1 0x15 |
| 45 | | #define SM8521_P2 0x16 |
| 46 | | #define SM8521_P3 0x17 |
| 47 | | #define SM8521_18 0x18 /* reserved */ |
| 48 | | #define SM8521_SYS 0x19 |
| 49 | | #define SM8521_CKC 0x1A |
| 50 | | #define SM8521_1B 0x1B /* reserved */ |
| 51 | | #define SM8521_SPH 0x1C |
| 52 | | #define SM8521_SPL 0x1D |
| 53 | | #define SM8521_PS0 0x1E |
| 54 | | #define SM8521_PS1 0x1F |
| 55 | | #define SM8521_P0C 0x20 |
| 56 | | #define SM8521_P1C 0x21 |
| 57 | | #define SM8521_P2C 0x22 |
| 58 | | #define SM8521_P3C 0x23 |
| 59 | | #define SM8521_MMU0 0x24 |
| 60 | | #define SM8521_MMU1 0x25 |
| 61 | | #define SM8521_MMU2 0x26 |
| 62 | | #define SM8521_MMU3 0x27 |
| 63 | | #define SM8521_MMU4 0x28 |
| 64 | | #define SM8521_29 0x29 /* reserved */ |
| 65 | | #define SM8521_2A 0x2A /* reserved */ |
| 66 | | #define SM8521_URTT 0x2B |
| 67 | | #define SM8521_URTR 0x2C |
| 68 | | #define SM8521_URTS 0x2D |
| 69 | | #define SM8521_URTC 0x2E |
| 70 | | #define SM8521_2F 0x2F /* reserved */ |
| 71 | | #define SM8521_LCDC 0x30 |
| 72 | | #define SM8521_LCH 0x31 |
| 73 | | #define SM8521_LCV 0x32 |
| 74 | | #define SM8521_33 0x33 /* reserved */ |
| 75 | | #define SM8521_DMC 0x34 |
| 76 | | #define SM8521_DMX1 0x35 |
| 77 | | #define SM8521_DMY1 0x36 |
| 78 | | #define SM8521_DMDX 0x37 |
| 79 | | #define SM8521_DMDY 0x38 |
| 80 | | #define SM8521_DMX2 0x39 |
| 81 | | #define SM8521_DMY2 0x3A |
| 82 | | #define SM8521_DMPL 0x3B |
| 83 | | #define SM8521_DMBR 0x3C |
| 84 | | #define SM8521_DMVP 0x3D |
| 85 | | #define SM8521_3E 0x3E /* reserved */ |
| 86 | | #define SM8521_3F 0x3F /* reserved */ |
| 87 | | #define SM8521_SGC 0x40 |
| 88 | | #define SM8521_41 0x41 /* reserved */ |
| 89 | | #define SM8521_SG0L 0x42 |
| 90 | | #define SM8521_43 0x43 /* reserved */ |
| 91 | | #define SM8521_SG1L 0x44 |
| 92 | | #define SM8521_45 0x45 /* reserved */ |
| 93 | | #define SM8521_SG0TH 0x46 |
| 94 | | #define SM8521_SG0TL 0x47 |
| 95 | | #define SM8521_SG1TH 0x48 |
| 96 | | #define SM8521_SG1TL 0x49 |
| 97 | | #define SM8521_SG2L 0x4A |
| 98 | | #define SM8521_4B 0x4B /* reserved */ |
| 99 | | #define SM8521_SG2TH 0x4C |
| 100 | | #define SM8521_SG2TL 0x4D |
| 101 | | #define SM8521_SGDA 0x4E |
| 102 | | #define SM8521_4F 0x4F /* reserved */ |
| 103 | | #define SM8521_TM0C 0x50 |
| 104 | | #define SM8521_TM0D 0x51 |
| 105 | | #define SM8521_TM1C 0x52 |
| 106 | | #define SM8521_TM1D 0x53 |
| 107 | | #define SM8521_CLKT 0x54 |
| 108 | | #define SM8521_55 0x55 /* reserved */ |
| 109 | | #define SM8521_56 0x56 /* reserved */ |
| 110 | | #define SM8521_57 0x57 /* reserved */ |
| 111 | | #define SM8521_58 0x58 /* reserved */ |
| 112 | | #define SM8521_59 0x59 /* reserved */ |
| 113 | | #define SM8521_5A 0x5A /* reserved */ |
| 114 | | #define SM8521_5B 0x5B /* reserved */ |
| 115 | | #define SM8521_5C 0x5C /* reserved */ |
| 116 | | #define SM8521_5D 0x5D /* reserved */ |
| 117 | | #define SM8521_WDT 0x5E |
| 118 | | #define SM8521_WDTC 0x5F |
| 119 | | #define SM8521_SG0W0 0x60 |
| 120 | | #define SM8521_SG0W1 0x61 |
| 121 | | #define SM8521_SG0W2 0x62 |
| 122 | | #define SM8521_SG0W3 0x63 |
| 123 | | #define SM8521_SG0W4 0x64 |
| 124 | | #define SM8521_SG0W5 0x65 |
| 125 | | #define SM8521_SG0W6 0x66 |
| 126 | | #define SM8521_SG0W7 0x67 |
| 127 | | #define SM8521_SG0W8 0x68 |
| 128 | | #define SM8521_SG0W9 0x69 |
| 129 | | #define SM8521_SG0W10 0x6A |
| 130 | | #define SM8521_SG0W11 0x6B |
| 131 | | #define SM8521_SG0W12 0x6C |
| 132 | | #define SM8521_SG0W13 0x6D |
| 133 | | #define SM8521_SG0W14 0x6E |
| 134 | | #define SM8521_SG0W15 0x6F |
| 135 | | #define SM8521_SG1W0 0x70 |
| 136 | | #define SM8521_SG1W1 0x71 |
| 137 | | #define SM8521_SG1W2 0x72 |
| 138 | | #define SM8521_SG1W3 0x73 |
| 139 | | #define SM8521_SG1W4 0x74 |
| 140 | | #define SM8521_SG1W5 0x75 |
| 141 | | #define SM8521_SG1W6 0x76 |
| 142 | | #define SM8521_SG1W7 0x77 |
| 143 | | #define SM8521_SG1W8 0x78 |
| 144 | | #define SM8521_SG1W9 0x79 |
| 145 | | #define SM8521_SG1W10 0x7A |
| 146 | | #define SM8521_SG1W11 0x7B |
| 147 | | #define SM8521_SG1W12 0x7C |
| 148 | | #define SM8521_SG1W13 0x7D |
| 149 | | #define SM8521_SG1W14 0x7E |
| 150 | | #define SM8521_SG1W15 0x7F |
| 151 | | |
| 152 | 164 | extern UINT8 internal_registers[]; |
| 153 | 165 | extern UINT8 gamecom_vram[]; |
| 154 | 166 | |
| 167 | |
| 155 | 168 | /*----------- defined in video/gamecom.c -----------*/ |
| 156 | 169 | |
| 157 | 170 | extern INTERRUPT_GEN( gamecom_scanline ); |
| 158 | 171 | |
| 159 | | #endif |
| 172 | |
| 173 | #endif /* __GAMECOM_H */ |