Previous 15994 Revisions Next

r8261 Friday 11th June, 2010 at 20:35:57 UTC by Wilbert Pol
Cassette: Chsange the proper flags when at end of tape.
[A2600] Made supercharger enable cassette motor upon mounting. Removed tape stop hack from the supercharger code.
[src/mess/devices]cassette.c
[src/mess/drivers]a2600.c

src/mess/devices/cassette.c
r8260r8261
1313
1414
1515#define CASSETTE_TAG      "cassette"
16#define ANIMATION_FPS      4
16#define ANIMATION_FPS      1
1717#define ANIMATION_FRAMES   4
1818
1919#define VERBOSE            0
r8260r8261
9494            double length = cassette_get_length(device);
9595            if (new_position > length)
9696            {
97               cassette->state = (cassette_state)(CASSETTE_MASK_DRVSTATE);
97               cassette->state = (cassette_state)(( cassette->state & ~CASSETTE_MASK_UISTATE ) | CASSETTE_STOPPED);
9898               new_position = length;
9999            }
100100         }
src/mess/drivers/a2600.c
r8260r8261
834834      }
835835      memory_set_bankptr(space->machine, "bank1", bank_base[1] );
836836      memory_set_bankptr(space->machine, "bank2", bank_base[2] );
837
838      /* Check if we should stop the tape */
839      if ( cpu_get_pc(devtag_get_device(space->machine, "maincpu")) == 0x00FD )
840      {
841         running_device *img = devtag_get_device(space->machine, "cassette");
842         if ( img )
843         {
844            cassette_change_state(img, CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR);
845         }
846      }
847837   }
848838   else if ( offset == 0xFF9 )
849839   {
r8260r8261
18821872      modeSS_write_enabled = 0;
18831873      modeSS_byte_started = 0;
18841874      memory_set_direct_update_handler(space, modeSS_opbase );
1885      /* Already start the motor of the cassette for the user */
1875      /* The Supercharger has no motor control so just enable it */
18861876      cassette_change_state( devtag_get_device(machine, "cassette"), CASSETTE_MOTOR_ENABLED, CASSETTE_MOTOR_DISABLED );
18871877      break;
18881878

Previous 15994 Revisions Next


© 1998-2018 The MESS Team