Previous 15994 Revisions Next

r15990 Tuesday 21st August, 2012 at 03:29:52 UTC by Angelo Salese
Fixed overplane char, it's actually a pointer to the tilemap, fixes regression with Jack Bros.
[src/mess/drivers]vboy.c

src/mess/drivers/vboy.c
r15989r15990
149149   state->m_bg_map = auto_alloc_array_clear(machine, int, 0x1000*0x1000);
150150   state->m_ovr_map = auto_alloc_array_clear(machine, int, 8*8);
151151
152   state->m_font  = auto_alloc_array(machine, UINT16, 2048 * 8);
152   state->m_font  = auto_alloc_array_clear(machine, UINT16, 2048 * 8);
153153   state->m_bgmap = auto_alloc_array(machine, UINT16, 0x20000 >> 1);
154154   state->m_objects = state->m_bgmap + (0x1e000 >> 1);
155155   state->m_columntab1 = state->m_bgmap + (0x1dc00 >> 1);
r15989r15990
379379   UINT16 w  = m_world[num+7];
380380   UINT16 h  = m_world[num+8];
381381   UINT16 param_base = m_world[num+9] & 0xfff0;
382   UINT16 ovr_char = m_world[num+10];
382   UINT16 ovr_char = m_bgmap[m_world[num+10]]; // perhaps x 2?
383383   UINT8 bg_map_num = def & 0x0f;
384384   UINT16 *vboy_paramtab;
385385   int i;
r15989r15990
912912void vboy_state::m_pcg_debug(UINT16 offset,UINT16 data,UINT16 mem_mask)
913913{
914914   UINT8 *pcg_ram = memregion("pcg")->base();
915   int i;
915916
916917   if(mem_mask & 0x00ff)
917918      pcg_ram[(offset<<1)+1] = (data & 0x00ff);
r15989r15990
920921      pcg_ram[(offset<<1)+0] = (data & 0xff00) >> 8;
921922
922923   gfx_element_mark_dirty(machine().gfx[0], offset >> 4);
924   for(i=0;i<0x800;i++)
925      gfx_element_mark_dirty(machine().gfx[0], i);
926
923927}
924928
925929WRITE16_MEMBER( vboy_state::vboy_font0_w )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team