Previous 199869 Revisions Next

r20824 Friday 8th February, 2013 at 08:04:01 UTC by Miodrag Milanović
ups
[src/mame/drivers]fgoal.c firetrk.c
[src/mame/video]f1gp.c fantland.c fastfred.c fastlane.c firetrap.c firetrk.c fitfight.c flower.c flstory.c freekick.c fromanc2.c fromance.c funkybee.c funybubl.c fuukifg2.c fuukifg3.c

trunk/src/mame/video/fromance.c
r20823r20824
2121
2222inline void fromance_state::get_fromance_tile_info( tile_data &tileinfo, int tile_index, int layer )
2323{
24//OBRISI.ME
2524   int tile = ((m_local_videoram[layer][0x0000 + tile_index] & 0x80) << 9) |
2625            (m_local_videoram[layer][0x1000 + tile_index] << 8) |
2726            m_local_videoram[layer][0x2000 + tile_index];
r20823r20824
3635
3736inline void fromance_state::get_nekkyoku_tile_info( tile_data &tileinfo, int tile_index, int layer )
3837{
39//OBRISI.ME
4038   int tile = (m_local_videoram[layer][0x0000 + tile_index] << 8) |
4139            m_local_videoram[layer][0x1000 + tile_index];
4240   int color = m_local_videoram[layer][tile_index + 0x2000] & 0x3f;
r20823r20824
5755
5856void fromance_state::init_common(  )
5957{
60//OBRISI.ME
6158
6259   /* allocate local videoram */
6360   m_local_videoram[0] = auto_alloc_array(machine(), UINT8, 0x1000 * 3);
trunk/src/mame/video/fastlane.c
r20823r20824
2626
2727void fastlane_state::set_pens(  )
2828{
29//OBRISI.ME
3029   int i;
3130
3231   for (i = 0x00; i < 0x800; i += 2)
trunk/src/mame/video/fuukifg2.c
r20823r20824
4646
4747inline void fuuki16_state::get_tile_info(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_)
4848{
49//OBRISI.ME
5049   UINT16 code = m_vram[_N_][2 * tile_index + 0];
5150   UINT16 attr = m_vram[_N_][2 * tile_index + 1];
5251   SET_TILE_INFO_MEMBER(1 + _N_, code, attr & 0x3f, TILE_FLIPYX((attr >> 6) & 3));
r20823r20824
265264/* Wrapper to handle bg and bg2 ttogether */
266265void fuuki16_state::fuuki16_draw_layer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri )
267266{
268//OBRISI.ME
269267   int buffer = (m_vregs[0x1e / 2] & 0x40);
270268
271269   switch( i )
trunk/src/mame/video/fuukifg3.c
r20823r20824
5050
5151inline void fuuki32_state::get_tile_info8bpp(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_)
5252{
53//OBRISI.ME
5453   UINT16 code = (m_vram[_N_][tile_index] & 0xffff0000) >> 16;
5554   UINT16 attr = (m_vram[_N_][tile_index] & 0x0000ffff);
5655   SET_TILE_INFO_MEMBER(1 + _N_, code, (attr & 0x3f) >> 4, TILE_FLIPYX((attr >> 6) & 3));
r20823r20824
6160
6261inline void fuuki32_state::get_tile_info4bpp(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_)
6362{
64//OBRISI.ME
6563   UINT16 code = (m_vram[_N_][tile_index] & 0xffff0000) >> 16;
6664   UINT16 attr = (m_vram[_N_][tile_index] & 0x0000ffff);
6765   SET_TILE_INFO_MEMBER(1 + _N_, code, attr & 0x3f, TILE_FLIPYX((attr >> 6) & 3));
r20823r20824
288286/* Wrapper to handle bg and bg2 ttogether */
289287void fuuki32_state::fuuki32_draw_layer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri )
290288{
291//OBRISI.ME
292289   int buffer = ((m_vregs[0x1e / 4] & 0x0000ffff) & 0x40);
293290
294291   switch( i )
trunk/src/mame/video/funybubl.c
r20823r20824
2929
3030void funybubl_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
3131{
32//OBRISI.ME
3332   UINT8 *source = &m_banked_vram[0x2000 - 0x20];
3433   UINT8 *finish = source - 0x1000;
3534
trunk/src/mame/video/fitfight.c
r20823r20824
66
77void fitfight_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int layer )
88{
9//OBRISI.ME
109   gfx_element *gfx = machine().gfx[3];
1110   UINT16 *source = m_spriteram;
1211   UINT16 *finish = source + 0x800 / 2;
trunk/src/mame/video/fastfred.c
r20823r20824
234234{
235235   const rectangle spritevisiblearea(2*8, 32*8-1, 2*8, 30*8-1);
236236   const rectangle spritevisibleareaflipx(0*8, 30*8-1, 2*8, 30*8-1);
237//OBRISI.ME
238237   int offs;
239238
240239   for (offs = m_spriteram.bytes() - 4; offs >= 0; offs -= 4)
trunk/src/mame/video/firetrk.c
r20823r20824
247247
248248void firetrk_state::firetrk_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int which, int flash)
249249{
250//OBRISI.ME
251250   int gfx_bank, code, color, flip_x, flip_y, x, y;
252251
253252   if (which)
r20823r20824
277276
278277void firetrk_state::superbug_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int flash)
279278{
280//OBRISI.ME
281279   int gfx_bank = (*m_car_rot & 0x10) ? 4 : 3;
282280   int code = ~*m_car_rot & 0x03;
283281   int color = flash ? 1 : 0;
r20823r20824
290288
291289void firetrk_state::montecar_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int which, int is_collision_detection)
292290{
293//OBRISI.ME
294291   int gfx_bank, code, color, flip_x, flip_y, x, y;
295292
296293   if (which)
trunk/src/mame/video/funkybee.c
r20823r20824
9292
9393void funkybee_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
9494{
95//OBRISI.ME
9695   int offs;
9796
9897   for (offs = 0x0f; offs >= 0; offs--)
r20823r20824
121120
122121void funkybee_state::draw_columns( bitmap_ind16 &bitmap, const rectangle &cliprect )
123122{
124//OBRISI.ME
125123   int offs;
126124
127125   for (offs = 0x1f; offs >= 0; offs--)
trunk/src/mame/video/freekick.c
r20823r20824
2828
2929void freekick_state::gigas_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
3030{
31//OBRISI.ME
3231   int offs;
3332
3433   for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
r20823r20824
6362
6463void freekick_state::pbillrd_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
6564{
66//OBRISI.ME
6765   int offs;
6866
6967   for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
r20823r20824
9997
10098void freekick_state::freekick_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
10199{
102//OBRISI.ME
103100   int offs;
104101
105102   for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
trunk/src/mame/video/fromanc2.c
r20823r20824
1717
1818inline void fromanc2_state::fromanc2_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer )
1919{
20//OBRISI.ME
2120   int tile, color;
2221
2322   tile  = (m_videoram[vram][layer][tile_index] & 0x3fff) | (m_gfxbank[vram][layer] << 14);
r20823r20824
3837
3938inline void fromanc2_state::fromancr_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer )
4039{
41//OBRISI.ME
4240   int tile, color;
4341
4442   tile  = m_videoram[vram][layer][tile_index] | (m_gfxbank[vram][layer] << 16);
r20823r20824
162160
163161inline void fromanc2_state::fromanc2_dispvram_w( offs_t offset, UINT16 data, UINT16 mem_mask, int vram, int layer )
164162{
165//OBRISI.ME
166163   layer += (offset < 0x1000) ? 0 : 1;
167164
168165   COMBINE_DATA(&m_videoram[vram][layer][offset & 0x0fff]);
r20823r20824
253250
254251inline void fromanc2_state::fromancr_vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int layer )
255252{
256//OBRISI.ME
257253   int vram = (offset < 0x1000) ? 0 : 1;
258254
259255   COMBINE_DATA(&m_videoram[vram][layer][offset & 0x0fff]);
r20823r20824
292288
293289void fromanc2_state::fromancr_gfxbank_w( int data )
294290{
295//OBRISI.ME
296291
297292   m_gfxbank[0][0] = (data & 0x0010) >>  4; // BG (1P)
298293   m_gfxbank[0][1] = (data & 0xf000) >> 12; // FG (1P)
r20823r20824
307302
308303inline void fromanc2_state::fromanc4_vram_w( offs_t offset, UINT16 data, UINT16 mem_mask, int layer )
309304{
310//OBRISI.ME
311305   int vram = (offset < 0x4000) ? 0 : 1;
312306
313307   COMBINE_DATA(&m_videoram[vram][layer][offset & 0x3fff]);
trunk/src/mame/video/flower.c
r20823r20824
2828
2929void flower_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect )
3030{
31//OBRISI.ME
3231   gfx_element *gfx = machine().gfx[1];
3332   UINT8 *source = m_spriteram + 0x200;
3433   UINT8 *finish = source - 0x200;
trunk/src/mame/video/f1gp.c
r20823r20824
248248// BOOTLEG
249249void f1gp_state::f1gpb_draw_sprites( bitmap_ind16 &bitmap,const rectangle &cliprect )
250250{
251//OBRISI.ME
252251   UINT16 *spriteram = m_spriteram;
253252   int attr_start, start_offset = m_spriteram.bytes() / 2 - 4;
254253
trunk/src/mame/video/firetrap.c
r20823r20824
192192
193193void firetrap_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
194194{
195//OBRISI.ME
196195   int offs;
197196
198197   for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
trunk/src/mame/video/fantland.c
r20823r20824
6363
6464void fantland_state::draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect)
6565{
66//OBRISI.ME
6766   UINT8 *spriteram_2 = m_spriteram2;
6867   UINT8   *indx_ram   =   m_spriteram + 0x2000,    // this ram contains indexes into offs_ram
6968         *offs_ram   =   m_spriteram + 0x2400,    // this ram contains x,y offsets or indexes into spriteram_2
trunk/src/mame/video/flstory.c
r20823r20824
161161
162162void flstory_state::flstory_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri )
163163{
164//OBRISI.ME
165164   int i;
166165
167166   for (i = 0; i < 0x20; i++)
r20823r20824
217216
218217void flstory_state::victnine_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
219218{
220//OBRISI.ME
221219   int i;
222220
223221   for (i = 0; i < 0x20; i++)
trunk/src/mame/drivers/firetrk.c
r20823r20824
1818
1919void firetrk_state::set_service_mode(int enable)
2020{
21//OBRISI.ME
2221   m_in_service_mode = enable;
2322
2423   /* watchdog is disabled during service mode */
trunk/src/mame/drivers/fgoal.c
r20823r20824
9292
9393unsigned fgoal_state::video_ram_address(  )
9494{
95//OBRISI.ME
9695   return 0x4000 | (m_row << 5) | (m_col >> 3);
9796}
9897

Previous 199869 Revisions Next


© 1997-2024 The MAME Team