Previous 15994 Revisions Next

r14412 Friday 10th February, 2012 at 08:25:21 UTC by Miodrag Milanović
-lynx: removed game_not_working and game_imperfect_sound flags
fixed sprite scaling bug (fixed blue lightning). [Huygens]
[src/mess/drivers]lynx.c
[src/mess/machine]lynx.c

src/mess/machine/lynx.c
r14411r14412
421421   int literal_data, count, color;
422422   UINT16 width_accum;
423423
424   width_accum = (xdir == 1) ? 0 : state->m_blitter.width_offset;
424   width_accum = (xdir == 1) ? state->m_blitter.width_offset : 0;
425425   for( bits = 0, j = 0, buffer = 0, xi = state->m_blitter.x_pos - state->m_blitter.xoff; ; )      /* through the rle entries */
426426   {
427427      if (bits < 5 + bits_per_pixel) /* under 7 bits no complete entry */
r14411r14412
715715      state->m_blitter.spr_ctl0 = lynx_read_ram(state, state->m_blitter.scb + SCB_SPRCTL0);
716716      state->m_blitter.spr_ctl1 = lynx_read_ram(state, state->m_blitter.scb + SCB_SPRCTL1);
717717      state->m_blitter.spr_coll = lynx_read_ram(state, state->m_blitter.scb + SCB_SPRCOLL);
718      state->m_blitter.memory_accesses += 8;
718      state->m_blitter.memory_accesses += 5;
719719
720720      if(!(state->m_blitter.spr_ctl1 & 0x04)) // sprite will be processed (if sprite is skipped first 5 bytes are still copied to suzy)
721721      {
r14411r14412
969969      case STRETCHH:
970970         return state->m_blitter.stretch>>8;
971971      case TILTL:
972         return state->m_blitter.stretch & 0xff;
972         return state->m_blitter.tilt & 0xff;
973973      case TILTH:
974         return state->m_blitter.stretch>>8;
974         return state->m_blitter.tilt>>8;
975975      // case SPRDOFFL:
976976      // case SPRVPOSL:
977977      // case COLLOFFL:
r14411r14412
11591159         state->m_blitter.stretch |= data<<8;
11601160         break;
11611161      case TILTL:
1162         state->m_blitter.stretch = data;
1162         state->m_blitter.tilt = data;
11631163         break;
11641164      case TILTH:
1165         state->m_blitter.stretch &= 0xff;
1166         state->m_blitter.stretch |= data<<8;
1165         state->m_blitter.tilt &= 0xff;
1166         state->m_blitter.tilt |= data<<8;
11671167         break;
11681168      // case SPRDOFFL:
11691169      // case SPRVPOSL:
r14411r14412
14211421         case 104:
14221422            break;
14231423         case 103:
1424            state->m_mikey.vb_rest = 1;
1424            state->m_mikey.vb_rest = 1; // Not sure about rest timing (note rest is inverted)
14251425            break;
14261426         case 102:
14271427            state->m_mikey.disp_addr = state->m_mikey.data[0x94] | (state->m_mikey.data[0x95] << 8);
r14411r14412
17611761      value |= (direction & 0x02) ? (state->m_mikey.data[offset] & 0x02) : 0x00;   // Cart Address Data output (0 turns cart power on)
17621762      value |= (direction & 0x04) ? (state->m_mikey.data[offset] & 0x04) : 0x04;   // noexp input
17631763      // REST read returns actual rest state anded with rest output bit
1764      value |= (direction & 0x08) ? (state->m_mikey.data[offset] & 0x08) & (state->m_mikey.vb_rest<<3) : 0x00;   // rest output
1764      value |= (direction & 0x08) ? (((state->m_mikey.data[offset] & 0x08) && (state->m_mikey.vb_rest)) ? 0x00 : 0x08) : 0x00;   // rest output (inverted)
17651765      value |= (direction & 0x10) ? (state->m_mikey.data[offset] & 0x10) : 0x10;   // audin input
17661766      /* Hack: we disable COMLynx  */
17671767      value |= 0x04;
src/mess/drivers/lynx.c
r14411r14412
189189***************************************************************************/
190190
191191/*    YEAR  NAME    PARENT  COMPAT  MACHINE INPUT   INIT    COMPANY   FULLNAME      FLAGS */
192CONS( 1989, lynx,   0,      0,      lynx,   lynx,   0,       "Atari",  "Lynx",       GAME_NOT_WORKING | GAME_IMPERFECT_SOUND )
192CONS( 1989, lynx,   0,      0,      lynx,   lynx,   0,       "Atari",  "Lynx",   0)
193193// CONS( 1991, lynx2,  lynx,   0,      lynx2,  lynx,   0,       "Atari",  "Lynx II",    GAME_NOT_WORKING | GAME_IMPERFECT_SOUND )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team