Previous 199869 Revisions Next

r20264 Monday 14th January, 2013 at 16:50:08 UTC by Angelo Salese
Less half-assed fix for SMC-777
[src/mame/machine]3do.c
[src/mess/drivers]smc777.c

trunk/src/mame/machine/3do.c
r20263r20264
515100022ba4 - init exp bus, write 17x 00 to the selection register to let all expansion devices determine their id on the bus.
525200022bd0 - write 0x8f to the selection register to determine if there are too many devices attached.
5353
54(11-jan-2013)
55"Error, could not open cdrom device"
56- ARM finally uploads a program to DSPP, wants something back out of it (reads EO 0xee and unmasks DSPP irq).
57
5458*/
5559
5660#include "emu.h"
r20263r20264
611615   case 0x05d0/4: case 0x05d4/4: case 0x05d8/4: case 0x05dc/4:
612616   case 0x05e0/4: case 0x05e4/4: case 0x05e8/4: case 0x05ec/4:
613617   case 0x05f0/4: case 0x05f4/4: case 0x05f8/4: case 0x05fc/4:
618      printf("%08x %08x\n",offset*4,data);
614619      m_madam.dma[(offset/4) & 0x1f][offset & 0x03] = data;
615620      return;
616621
r20263r20264
935940      m_clio.slack = data & 0x000003ff;
936941      break;
937942
943   case 0x0304/4:
944      if(data)
945         printf("DMA %08x\n",data);
938946
947      break;
948
939949   case 0x0308/4:
940950      m_clio.dmareqdis = data;
941951      break;
trunk/src/mess/drivers/smc777.c
r20263r20264
190190
191191         if(blink && machine().primary_screen->frame_number() & 0x10) //blinking, used by Dragon's Alphabet
192192            color = bk_pen;
193         else
194            color+=m_pal_mode;
193195
194196         for(yi=0;yi<8;yi++)
195197         {
r20263r20264
197199            {
198200               int pen;
199201
200               pen = ((gfx_data[tile*8+yi]>>(7-xi)) & 1) ? (color+m_pal_mode) : bk_pen;
202               pen = ((gfx_data[tile*8+yi]>>(7-xi)) & 1) ? (color) : bk_pen;
201203
202               if ((pen != -1) && (pen < SMC777_NUMPENS))
204               if (pen != -1)
203205                  bitmap.pix16(y*8+CRTC_MIN_Y+yi, x*8+CRTC_MIN_X+xi) = machine().pens[pen];
204206            }
205207         }
r20263r20264
10831085   MCFG_SCREEN_VISIBLE_AREA(0, 660-1, 0, 220-1) //normal 640 x 200 + 20 pixels for border color
10841086   MCFG_SCREEN_UPDATE_DRIVER(smc777_state, screen_update_smc777)
10851087
1086   MCFG_PALETTE_LENGTH(SMC777_NUMPENS)
1088   MCFG_PALETTE_LENGTH(SMC777_NUMPENS)
10871089   MCFG_GFXDECODE(smc777)
10881090
10891091   MCFG_MC6845_ADD("crtc", H46505, MASTER_CLOCK/2, mc6845_intf)    /* unknown clock, hand tuned to get ~60 fps */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team