Previous 15994 Revisions Next

r6958 Wednesday 6th January, 2010 at 16:47:23 UTC by Angelo Salese
[ACAN]: More improvements
[src/mess/drivers]supracan.c

src/mess/drivers/supracan.c
r6957r6958
9494   UINT16 tile_bank;
9595
9696   count = (tilemap_base_addr[layer]);
97   size = (tilemap_flags[layer] & 0x200) ? 64 : 32;
97   size = (video_flags & 0x100) ? 64 : 32;
9898   /* FIXME: swap scrollx / scrolly */
9999   if(size == 64)
100100   {
r6957r6958
362362            //{
363363            //   fatalerror("%04x",data);
364364            //}
365            if(data & 0x2000)
366               acan_dma_regs.source-=2;
365//            if(data & 0x2000)
366//               acan_dma_regs.source-=2;
367367            verboselog(space->machine, 0, "supracan_dma_w: Kicking off a DMA from %08x to %08x, %d bytes (%04x)\n", acan_dma_regs.source, acan_dma_regs.dest, acan_dma_regs.count + 1, data);
368368            for(i = 0; i <= acan_dma_regs.count; i++)
369369            {
r6957r6958
377377               {
378378                  memory_write_byte(space, acan_dma_regs.dest, memory_read_byte(space, acan_dma_regs.source));
379379                  acan_dma_regs.dest++;
380                  if(data & 0x2000)
381                     acan_dma_regs.source--;
382                  else
383                     acan_dma_regs.source++;
380                  acan_dma_regs.source++;
384381               }
385382            }
386383         }
r6957r6958
404401   AM_RANGE( 0xe81000, 0xe8ffff ) AM_RAM_WRITE( supracan_soundram_w ) AM_BASE( &supracan_soundram_16 )
405402   AM_RANGE( 0xe90000, 0xe9001f ) AM_WRITE( supracan_sound_w )
406403   AM_RANGE( 0xe90020, 0xe9002b ) AM_WRITE( supracan_dma_w )
404   AM_RANGE( 0xe90030, 0xe9003b ) AM_WRITE( supracan_dma_w ) //FIXME: clean me up
407405   AM_RANGE( 0xf00000, 0xf001ff ) AM_READWRITE( supracan_video_r, supracan_video_w )
408406   AM_RANGE( 0xf00200, 0xf003ff ) AM_RAM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE_GENERIC(paletteram)
409407   AM_RANGE( 0xf40000, 0xf5ffff ) AM_RAM_WRITE(supracan_char_w) AM_BASE(&supracan_vram)   /* Unknown, some data gets copied here during boot */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team