summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/megadriv.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-10-14 07:04:16 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-10-14 07:04:16 +0000
commit3e621b169b9139ff8d7cb98c52615be66e825d5e (patch)
treeb5da88e2821f71b4488f4e60d7821a7d09184115 /src/mame/drivers/megadriv.c
parentec6298ad894161c76e36ab7e29e1c93fbef755ff (diff)
Cleanups and version bump.
Diffstat (limited to 'src/mame/drivers/megadriv.c')
-rw-r--r--src/mame/drivers/megadriv.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/mame/drivers/megadriv.c b/src/mame/drivers/megadriv.c
index fbe24b0a2f5..71c54178f8f 100644
--- a/src/mame/drivers/megadriv.c
+++ b/src/mame/drivers/megadriv.c
@@ -2681,7 +2681,7 @@ static READ16_HANDLER( _32x_dreq_common_r )
current_fifo_read_pos++;
- // printf("reading FIFO!\n");
+ // printf("reading FIFO!\n");
if (current_fifo_readblock == fifo_block_a && !fifo_block_a_full)
printf("Fifo block a isn't filled!\n");
@@ -2741,7 +2741,7 @@ static WRITE16_HANDLER( _32x_dreq_common_w )
dreq_src_addr[offset&1] = ((offset&1) == 0) ? (data & 0xff) : (data & 0xfffe);
//if((dreq_src_addr[0]<<16)|dreq_src_addr[1])
- // printf("DREQ set SRC = %08x\n",(dreq_src_addr[0]<<16)|dreq_src_addr[1]);
+ // printf("DREQ set SRC = %08x\n",(dreq_src_addr[0]<<16)|dreq_src_addr[1]);
break;
@@ -2756,7 +2756,7 @@ static WRITE16_HANDLER( _32x_dreq_common_w )
dreq_dst_addr[offset&1] = ((offset&1) == 0) ? (data & 0xff) : (data & 0xffff);
//if((dreq_dst_addr[0]<<16)|dreq_dst_addr[1])
- // printf("DREQ set DST = %08x\n",(dreq_dst_addr[0]<<16)|dreq_dst_addr[1]);
+ // printf("DREQ set DST = %08x\n",(dreq_dst_addr[0]<<16)|dreq_dst_addr[1]);
break;
@@ -2769,8 +2769,8 @@ static WRITE16_HANDLER( _32x_dreq_common_w )
dreq_size = data & 0xfffc;
- // if(dreq_size)
- // printf("DREQ set SIZE = %04x\n",dreq_size);
+ // if(dreq_size)
+ // printf("DREQ set SIZE = %04x\n",dreq_size);
break;
@@ -3208,7 +3208,7 @@ static READ16_HANDLER( _32x_common_vdp_regs_r )
-// printf("_32x_68k_a15180_r (a15180) %04x\n",mem_mask);
+// printf("_32x_68k_a15180_r (a15180) %04x\n",mem_mask);
// read needs authorization too I think, undefined behavior otherwise
switch (offset)
@@ -3382,7 +3382,7 @@ static WRITE16_HANDLER( _32x_common_vdp_regs_w )
case 0x0a/2:
// bit 0 is the framebuffer select, change is delayed until vblank;
- // _32x_a1518a_reg = (_32x_a1518a_reg & 0xfffe);
+ // _32x_a1518a_reg = (_32x_a1518a_reg & 0xfffe);
if (ACCESSING_BITS_0_7)
{
_32x_fb_swap = data & 1;
@@ -3979,7 +3979,7 @@ static WRITE16_HANDLER( scd_a12002_memory_mode_w )
static READ16_HANDLER( segacd_sub_memory_mode_r )
{
return (segacd_ram_writeprotect_bits << 8) |
- /*(segacd_4meg_prgbank << 6) | */
+ /*(segacd_4meg_prgbank << 6) | */
(segacd_memory_priority_mode << 3) |
(segacd_ram_mode << 2) |
((segacd_maincpu_has_ram_access^1) << 1) |
@@ -4309,7 +4309,7 @@ static WRITE16_HANDLER( segacd_main_dataram_part1_w )
static READ16_HANDLER( scd_hint_vector_r )
{
-// printf("read HINT offset %d\n", offset);
+// printf("read HINT offset %d\n", offset);
switch (offset&1)
{
@@ -4360,13 +4360,13 @@ static TIMER_CALLBACK( segacd_gfx_conversion_timer_callback )
/*
static const gfx_layout sega_8x8_layout =
{
- 8,8,
- SEGACD_NUM_TILES16,
- 4,
- { 0,1,2,3 },
- { 8,12,0,4,24,28,16,20 },
- { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 },
- 8*32
+ 8,8,
+ SEGACD_NUM_TILES16,
+ 4,
+ { 0,1,2,3 },
+ { 8,12,0,4,24,28,16,20 },
+ { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 },
+ 8*32
};
*/
@@ -4421,8 +4421,8 @@ static const gfx_layout sega_8x8_layout =
#define _32x32_SEQUENCE_2 \
{ 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32, \
- 8*32, 9*32, 10*32, 11*32, 12*32, 13*32, 14*32, 15*32, \
- 16*32,17*32,18*32,19*32,20*32,21*32,22*32,23*32, \
+ 8*32, 9*32, 10*32, 11*32, 12*32, 13*32, 14*32, 15*32, \
+ 16*32,17*32,18*32,19*32,20*32,21*32,22*32,23*32, \
24*32,25*32, 26*32, 27*32, 28*32, 29*32, 30*32, 31*32}, \
#define _32x32_SEQUENCE_2_FLIP \
@@ -4693,9 +4693,9 @@ void segacd_init_main_cpu( running_machine* machine )
/* as a temporary measure we use the MAME tilemaps, this is hideously inefficient as we have to mark the active one as
dirty before each operation due to the RAM based tiles. For the larger tilemaps this means we have to re-render a 4096x4096
- bitmap to the tilemap cache on each blit operation just to copy the few needed tiles out of it, needless to say, this is SLOW.
- Eventually the tilemaps will be replaced with a get_pixel function which will perform all the needed lookups on a per-pixel
- basis instead of re-rendering the whole thing */
+ bitmap to the tilemap cache on each blit operation just to copy the few needed tiles out of it, needless to say, this is SLOW.
+ Eventually the tilemaps will be replaced with a get_pixel function which will perform all the needed lookups on a per-pixel
+ basis instead of re-rendering the whole thing */
segacd_stampmap[0] = tilemap_create(machine, get_stampmap_16x16_1x1_tile_info, tilemap_scan_rows, 16, 16, 16, 16);
segacd_stampmap[1] = tilemap_create(machine, get_stampmap_32x32_1x1_tile_info, tilemap_scan_rows, 32, 32, 8, 8);
segacd_stampmap[2] = tilemap_create(machine, get_stampmap_16x16_16x16_tile_info, tilemap_scan_rows, 16, 16, 256, 256); // 128kb!
@@ -4963,10 +4963,10 @@ static void segacd_cdd_get_status(running_machine *machine)
// ...
/*segacd_cdd.status = 0;
- segacd_cdd.minute = 0;
- segacd_cdd.seconds = 0;
- segacd_cdd.frame = 0;
- segacd_cdd.ext = 0;*/
+ segacd_cdd.minute = 0;
+ segacd_cdd.seconds = 0;
+ segacd_cdd.frame = 0;
+ segacd_cdd.ext = 0;*/
cdd_hock_irq(machine,1);
}
@@ -5270,21 +5270,21 @@ static ADDRESS_MAP_START( segacd_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0xff8004 ,0xff8005) AM_READWRITE(segacd_cdc_mode_address_r, segacd_cdc_mode_address_w)
AM_RANGE(0xff8006 ,0xff8007) AM_READWRITE(segacd_cdc_data_r, segacd_cdc_data_w)
-// AM_RANGE(0xff8008, 0xff8009) // CDC Host Data
-// AM_RANGE(0xff800a, 0xff800b) // CDC DMA Address
-// AM_RANGE(0xff800c, 0xff800d) // Stopwatch timer
+// AM_RANGE(0xff8008, 0xff8009) // CDC Host Data
+// AM_RANGE(0xff800a, 0xff800b) // CDC DMA Address
+// AM_RANGE(0xff800c, 0xff800d) // Stopwatch timer
AM_RANGE(0xff800e ,0xff800f) AM_READWRITE(segacd_comms_flags_r, segacd_comms_flags_subcpu_w)
AM_RANGE(0xff8010 ,0xff801f) AM_READWRITE(segacd_comms_sub_part1_r, segacd_comms_sub_part1_w)
AM_RANGE(0xff8020 ,0xff802f) AM_READWRITE(segacd_comms_sub_part2_r, segacd_comms_sub_part2_w)
-// AM_RANGE(0xff8030, 0xff8031) // Timer W/INT3
+// AM_RANGE(0xff8030, 0xff8031) // Timer W/INT3
AM_RANGE(0xff8032, 0xff8033) AM_READWRITE(segacd_irq_mask_r,segacd_irq_mask_w)
AM_RANGE(0xff8034, 0xff8035) AM_NOP // CD Fader
AM_RANGE(0xff8036, 0xff8037) AM_READWRITE(segacd_cdd_ctrl_r,segacd_cdd_ctrl_w)
AM_RANGE(0xff8038, 0xff8041) AM_READ8(segacd_cdd_rx_r,0xffff)
AM_RANGE(0xff8042, 0xff804b) AM_WRITE8(segacd_cdd_tx_w,0xffff)
-// AM_RANGE(0xff804c, 0xff804d) // Font Color
-// AM_RANGE(0xff804e, 0xff804f) // Font bit
-// AM_RANGE(0xff8050, 0xff8057) // Font data (read only)
+// AM_RANGE(0xff804c, 0xff804d) // Font Color
+// AM_RANGE(0xff804e, 0xff804f) // Font bit
+// AM_RANGE(0xff8050, 0xff8057) // Font data (read only)
AM_RANGE(0xff8058, 0xff8059) AM_READWRITE(segacd_stampsize_r, segacd_stampsize_w) // Stamp size
AM_RANGE(0xff805a, 0xff805b) AM_READWRITE(segacd_stampmap_base_address_r, segacd_stampmap_base_address_w) // Stamp map base address
AM_RANGE(0xff805c, 0xff805d) AM_READWRITE(segacd_imagebuffer_vcell_size_r, segacd_imagebuffer_vcell_size_w)// Image buffer V cell size
@@ -5293,10 +5293,10 @@ static ADDRESS_MAP_START( segacd_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0xff8062, 0xff8063) AM_READWRITE(segacd_imagebuffer_hdot_size_r, segacd_imagebuffer_hdot_size_w) // Image buffer H dot size
AM_RANGE(0xff8064, 0xff8065) AM_READWRITE(segacd_imagebuffer_vdot_size_r, segacd_imagebuffer_vdot_size_w ) // Image buffer V dot size
AM_RANGE(0xff8066, 0xff8067) AM_WRITE(segacd_trace_vector_base_address_w)// Trace vector base address
-// AM_RANGE(0xff8068, 0xff8069) // Subcode address
+// AM_RANGE(0xff8068, 0xff8069) // Subcode address
-// AM_RANGE(0xff8100, 0xff817f) // Subcode buffer area
-// AM_RANGE(0xff8180, 0xff81ff) // mirror of subcode buffer area
+// AM_RANGE(0xff8100, 0xff817f) // Subcode buffer area
+// AM_RANGE(0xff8180, 0xff81ff) // mirror of subcode buffer area
ADDRESS_MAP_END