Previous 15994 Revisions Next

r1230 Monday 5th November, 2007 at 19:14:39 UTC by Wilbert Pol
[OSBORNE1] Added opbase handler to handle execution from RAM at 2000-2FFF.
[src/mess/machine]osborne1.c

src/mess/machine/osborne1.c
r1229r1230
188188   osborne1.in_irq_handler = 0;
189189}
190190
191static OPBASE_HANDLER( osborne1_opbase ) {
192   if ( ( address & 0xF000 ) == 0x2000 ) {
193      if ( ! osborne1.bank2_enabled ) {
194         opcode_mask = 0x0fff;
195         opcode_arg_base = mess_ram + 0x2000;
196         opcode_base = mess_ram + 0x2000;
197         opcode_memory_min = 0x2000;
198         opcode_memory_max = 0x2fff;
199         return ~0;
200      }
201   }
202   return address;
203}
204
191205static void osborne1_z80_reset(int param) {
192206   osborne1.pia_1_irq_state = 0;
193207   osborne1.in_irq_handler = 0;
r1229r1230
415429   pia_1_ca1_w( 0, 0 );
416430
417431   mame_timer_set( time_zero, 0, setup_beep );
432
433   memory_set_opbase_handler( 0, osborne1_opbase );
418434}
419435
420436DRIVER_INIT( osborne1 ) {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team