Previous 199869 Revisions Next

r36230 Tuesday 3rd March, 2015 at 22:49:09 UTC by David Haywood
xrally experiments (nw)
[src/emu/cpu/i386]x87ops.inc
[src/mame/video]hng64_3d.c
[src/mess/drivers]pasogo.c

trunk/src/emu/cpu/i386/x87ops.inc
r244741r244742
226226
227227void i386_device::x87_set_stack_underflow()
228228{
229   m_x87_sw &= ~X87_SW_C1;
230   m_x87_sw |= X87_SW_IE | X87_SW_SF;
229   m_x87_sw |= X87_SW_C1 | X87_SW_IE | X87_SW_SF;
231230}
232231
233232void i386_device::x87_set_stack_overflow()
234233{
235   m_x87_sw |= X87_SW_C1 | X87_SW_IE | X87_SW_SF;
234   m_x87_sw &= ~X87_SW_C1;
235   m_x87_sw |= X87_SW_IE | X87_SW_SF;
236236}
237237
238238int i386_device::x87_inc_stack()
trunk/src/mame/video/hng64_3d.c
r244741r244742
500500         if (chunkOffset[1] & 0x1000) polys[*numPolys].texType = 0x1;
501501         else                         polys[*numPolys].texType = 0x0;
502502
503         polys[*numPolys].texPageSmall       = (chunkOffset[2] & 0x8000) >> 15;  // Just a guess.
504         polys[*numPolys].texPageHorizOffset = (chunkOffset[2] & 0x3000) >> 12;
505         polys[*numPolys].texPageVertOffset  = (chunkOffset[2] & 0x0060) >> 5;
503         polys[*numPolys].texPageSmall       = (chunkOffset[2] & 0xc000)>>14;  // Just a guess.
504         polys[*numPolys].texPageHorizOffset = (chunkOffset[2] & 0x3800) >> 11;
505         polys[*numPolys].texPageVertOffset  = (chunkOffset[2] & 0x0070) >> 4;
506506
507507         polys[*numPolys].texIndex = chunkOffset[1] & 0x000f;
508508
r244741r244742
537537         polys[*numPolys].palOffset += (explicitPaletteValue1 + explicitPaletteValue2);
538538
539539
540#if 0
541         if (((chunkOffset[2] & 0xc000) == 0x4000) && (m_screen->frame_number() & 1))
542         {
543         //   if (chunkOffset[2] == 0xd870)
544            {
545               polys[*numPolys].debugColor = 0xffff0000;
546               printf("%d (%08x) : %04x %04x %04x\n", k, address[k] * 3 * 2, chunkOffset[0], chunkOffset[1], chunkOffset[2]);
547            }
548         }
549#endif
540550
541551         UINT8 chunkLength = 0;
542552         switch(chunkType)
r244741r244742
12751285               textureT = t_coord * 512.0f;
12761286            }
12771287
1288            // stuff in mode 1 here already looks good?
12781289            // Small-Page textures
1279            if (prOptions.texPageSmall)
1290            if (prOptions.texPageSmall == 2)
12801291            {
12811292               textureT = fmod(textureT, 256.0f);
12821293               textureS = fmod(textureS, 256.0f);
12831294
1284               textureT += (256.0f * prOptions.texPageHorizOffset);
1285               textureS += (256.0f * prOptions.texPageVertOffset);
1295               textureT += (256.0f * (prOptions.texPageHorizOffset>>1));
1296               textureS += (256.0f * (prOptions.texPageVertOffset>>1));
12861297            }
1298            else if (prOptions.texPageSmall == 3)
1299            {
1300               textureT = fmod(textureT, 128.0f);
1301               textureS = fmod(textureS, 128.0f);
1302
1303               textureT += (128.0f * (prOptions.texPageHorizOffset>>0));
1304               textureS += (128.0f * (prOptions.texPageVertOffset>>0));
1305            }
1306
12871307            paletteEntry = textureOffset[((int)textureS)*1024 + (int)textureT];
12881308
12891309            // Naieve Alpha Implementation (?) - don't draw if you're at texture index 0...
trunk/src/mess/drivers/pasogo.c
r244741r244742
467467
468468PALETTE_INIT_MEMBER(pasogo_state, pasogo)
469469{
470   palette.set_pen_color(0, rgb_t(80, 130, 130));
471   palette.set_pen_color(1, rgb_t(40, 60, 140));
470   palette.set_pen_color(0, rgb_t(160, 190, 170));
471   palette.set_pen_color(1, rgb_t(40, 50, 70));
472472}
473473
474474


Previous 199869 Revisions Next


© 1997-2024 The MAME Team