Previous 15994 Revisions Next

r1634 Tuesday 29th January, 2008 at 18:42:19 UTC by Wilbert Pol
[SUPERGB] Updated to access gb_vram directly instead of through program_read_byte_8.
[src/mess/machine]gb.c

src/mess/machine/gb.c
r1633r1634
449449}
450450
451451static WRITE8_HANDLER( gb_ram_bank_select_mbc6 ) {
452   logerror( "0x%04X: writei to mbc6 ram enable area: %04X <- 0x%02X\n", activecpu_get_pc(), offset, data );
452   logerror( "0x%04X: write to mbc6 ram enable area: %04X <- 0x%02X\n", activecpu_get_pc(), offset, data );
453453}
454454
455455static WRITE8_HANDLER( gb_rom_bank_select_mbc6_1 ) {
r1633r1634
11531153
11541154                           for( I = 0; I < 2048; I++ )
11551155                           {
1156                              col = program_read_byte_8 (0x8800 + (I*2));
1157                              col |= (UINT16)(program_read_byte_8 (0x8800 + (I*2) + 1)) << 8;
1156                              col = ( gb_vram[ 0x0800 + (I*2) + 1 ] << 8 ) | gb_vram[ 0x0800 + (I*2) ];
11581157                              sgb_pal_data[I] = col;
11591158                           }
11601159                        }
r1633r1634
11981197                              memcpy( sgb_tile_map, gb_vram + 0x1000, 2048 );
11991198                              for( I = 0; I < 64; I++ )
12001199                              {
1201                                 col = program_read_byte_8 (0x8800 + (I*2));
1202                                 col |= (UINT16)(program_read_byte_8 (0x8800 + (I*2) + 1)) << 8;
1200                                 col = ( gb_vram[ 0x0800 + (I*2) + 1 ] << 8 ) | gb_vram[ 0x0800 + (I*2) ];
12031201                                 sgb_pal[SGB_BORDER_PAL_OFFSET + I] = col;
12041202                              }
12051203                           }
r1633r1634
12081206                              memcpy( sgb_tile_map, gb_vram + 0x0800, 2048 );
12091207                              for( I = 0; I < 64; I++ )
12101208                              {
1211                                 col = program_read_byte_8 (0x9000 + (I*2));
1212                                 col |= (UINT16)(program_read_byte_8 (0x9000 + (I*2) + 1)) << 8;
1209                                 col = ( gb_vram[ 0x1000 + (I*2) + 1 ] << 8 ) | gb_vram[ 0x1000 + (I*2) ];
12131210                                 sgb_pal[SGB_BORDER_PAL_OFFSET + I] = col;
12141211                              }
12151212                           }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team