Previous 199869 Revisions Next

r17413 Thursday 23rd August, 2012 at 01:12:58 UTC by Angelo Salese
Fixed PAD latch and irq priority
[src/emu/video]huc6261.c
[src/mess/drivers]pcfx.c

trunk/src/emu/video/huc6261.c
r17412r17413
285285            // ----x----------- Enable Huc6272 BG1: 0 - disabled, 1 - enabled
286286            // -----x---------- Enable HuC6272 BG0: 0 - disabled, 1 - enabled
287287            // ------x--------- Enable HuC6270 SPR: 0 - disabled, 1 - enabled
288            // -------x-------- Enable HuC6270 BG: 0 - disabled, 1 - enabled
288            // -------x-------- Enable HuC6270 BG: 0 - disabled, 1 - enabled
289289            // --------x------- Number of SPR colors?: 0 - 16, 1 - 256
290290            // ---------x------ Number of BG colors?: 0 - 16, 1 - 256
291291            // ------------x--- Dot clock: 0 - 5MHz, 1 - 7MHz
trunk/src/mess/drivers/pcfx.c
r17412r17413
44
55  Driver file to handle emulation of the NEC PC-FX.
66
7  - BIOS error codes (guesses):
8    - Blue screen = MCU pad communication error
9    - Cyan screen = SCSI communication error (current one)
10
117***************************************************************************/
128
139
r17412r17413
2218{
2319   UINT8 ctrl[2];
2420   UINT8 status[2];
25   UINT16 latch[2];
21   UINT32 latch[2];
2622};
2723
2824class pcfx_state : public driver_device
r17412r17413
233229      // ----------xxx--- Priority level interrupt 14
234230      // -------------xxx Priority level interrupt 15
235231      case 0x80/4:
236         m_irq_priority[4] = ( data >> 0 ) & 0x07;
237         m_irq_priority[5] = ( data >> 3 ) & 0x07;
238         m_irq_priority[6] = ( data >> 6 ) & 0x07;
239         m_irq_priority[7] = ( data >> 9 ) & 0x07;
232         m_irq_priority[7] = ( data >> 0 ) & 0x07;
233         m_irq_priority[6] = ( data >> 3 ) & 0x07;
234         m_irq_priority[5] = ( data >> 6 ) & 0x07;
235         m_irq_priority[4] = ( data >> 9 ) & 0x07;
240236         check_irqs();
241237         break;
242238
r17412r17413
246242      // ----------xxx--- Priority level interrupt 10
247243      // -------------xxx Priority level interrupt 11
248244      case 0xC0/4:
249         m_irq_priority[0] = ( data >> 0 ) & 0x07;
250         m_irq_priority[1] = ( data >> 3 ) & 0x07;
251         m_irq_priority[2] = ( data >> 6 ) & 0x07;
252         m_irq_priority[3] = ( data >> 9 ) & 0x07;
245         m_irq_priority[3] = ( data >> 0 ) & 0x07;
246         m_irq_priority[2] = ( data >> 3 ) & 0x07;
247         m_irq_priority[1] = ( data >> 6 ) & 0x07;
248         m_irq_priority[0] = ( data >> 9 ) & 0x07;
253249         check_irqs();
254250         break;
255251   }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team