Previous 15994 Revisions Next

r4138 Thursday 15th January, 2009 at 17:16:30 UTC by Roberto Zandonà
c64: removed opbase handler (thanks aaron); it's now possible to use code in i/o space
[src/mess/machine]c64.c

src/mess/machine/c64.c
r4137r4138
10981098   vicirq = 0;
10991099}
11001100
1101static DIRECT_UPDATE_HANDLER( c64_direct )
1102{
1103   if ((address & 0xf000) == 0xd000)
1104   {
1105      if (c64_io_enabled)
1106      {
1107         direct->bytemask = 0x0fff;
1108         direct->decrypted = c64_io_mirror;
1109         direct->raw = c64_io_mirror;
1110         direct->bytestart = 0x0000;
1111         direct->byteend = 0xcfff;
1112         c64_io_mirror[address & 0x0fff] = c64_read_io( space, address & 0x0fff );
1113      }
1114      else
1115      {
1116         direct->bytemask = 0x0fff;
1117         direct->decrypted = c64_io_ram_r_ptr;
1118         direct->raw = c64_io_ram_r_ptr;
1119         direct->bytestart = 0x0000;
1120         direct->byteend = 0xcfff;
1121      }
1122      return ~0;
1123   }
1124   return address;
1125}
1126
11271101MACHINE_START( c64 )
11281102{
11291103   c64_port_data = 0x17;
r4137r4138
11361110
11371111   if (!ultimax)
11381112      c64_bankswitch(machine, 1);
1139
1140   memory_set_direct_update_handler( cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), c64_direct );
11411113}
11421114
11431115

Previous 15994 Revisions Next


© 1998-2018 The MESS Team