Previous 15994 Revisions Next

r2824 Friday 6th June, 2008 at 02:14:03 UTC by Firewave
And more Machine -> machine cleanups
[src/mess/includes]msx.h msx_slot.h
[src/mess/machine]msx.c msx_slot.c

src/mess/includes/msx_slot.h
r2823r2824
151151   char name[32];
152152   int (*init)(slot_state*, int page, UINT8 *mem, int size);
153153   void (*reset)(running_machine *machine, slot_state*);
154   void (*map)(slot_state*, int page);
155   void (*write)(slot_state*, UINT16, UINT8);
154   void (*map)(running_machine *machine, slot_state*, int page);
155   void (*write)(running_machine *machine, slot_state*, UINT16, UINT8);
156156   int (*loadsram)(slot_state*);
157157   int (*savesram)(slot_state*);
158158} msx_slot;
r2823r2824
217217#define MSX_SLOT_INIT(nm)          static int \
218218   slot_##nm##_init (slot_state *state, int page, UINT8 *mem, int size)
219219#define MSX_SLOT_MAP(nm)         \
220   static void slot_##nm##_map (slot_state *state, int page)
220   static void slot_##nm##_map (running_machine *machine, slot_state *state, int page)
221221#define MSX_SLOT_WRITE(nm)         \
222   static void slot_##nm##_write (slot_state *state, UINT16 addr, UINT8 val)
222   static void slot_##nm##_write (running_machine *machine, slot_state *state, UINT16 addr, UINT8 val)
223223#define MSX_SLOT_RESET(nm)         \
224224   static void slot_##nm##_reset (running_machine *machine, slot_state *state)
225225#define MSX_SLOT_LOADSRAM(nm)      \
src/mess/includes/msx.h
r2823r2824
9595 READ8_HANDLER (msx_kanji_r);
9696WRITE8_HANDLER (msx_kanji_w);
9797
98void msx_memory_map_all (void);
99void msx_memory_map_page (int page);
98void msx_memory_map_all (running_machine *machine);
99void msx_memory_map_page (running_machine *machine, int page);
100100void msx_memory_init (running_machine *machine);
101101void msx_memory_set_carts (void);
102102void msx_memory_reset (running_machine *machine);
src/mess/machine/msx_slot.c
r2823r2824
1818 */
1919
2020#include "driver.h"
21#include "deprecat.h"
2221#include "machine/8255ppi.h"
2322#include "includes/msx_slot.h"
2423#include "includes/msx.h"
r2823r2824
7675
7776MSX_SLOT_MAP(empty)
7877{
79   running_machine *machine = Machine;
8078   msx_cpu_setbank (machine, page * 2 + 1, msx1.empty);
8179   msx_cpu_setbank (machine, page * 2 + 2, msx1.empty);
8280}
r2823r2824
9896
9997MSX_SLOT_MAP(rom)
10098{
101   running_machine *machine = Machine;
10299   UINT8 *mem = state->mem + (page - state->start_page) * 0x4000;
103100
104101   msx_cpu_setbank (machine, page * 2 + 1, mem);
r2823r2824
118115
119116MSX_SLOT_MAP(ram)
120117{
121   running_machine *machine = Machine;
122118   UINT8 *mem = state->mem + (page - state->start_page) * 0x4000;
123119
124120   msx1.ram_pages[page] = mem;
r2823r2824
182178
183179MSX_SLOT_MAP(rammm)
184180{
185   running_machine *machine = Machine;
186181   UINT8 *mem = state->mem +
187182         0x4000 * (msx1.ram_mapper[page] & state->bank_mask);
188183
r2823r2824
211206
212207MSX_SLOT_MAP(msxdos2)
213208{
214   running_machine *machine = Machine;
215209   if (page != 1) {
216210      msx_cpu_setbank (machine, page * 2 + 1, msx1.empty);
217211      msx_cpu_setbank (machine, page * 2 + 2, msx1.empty);
r2823r2824
225219{
226220   if (addr == 0x6000) {
227221      state->banks[0] = val & 3;
228      slot_msxdos2_map (state, 1);
222      slot_msxdos2_map (machine, state, 1);
229223   }
230224}
231225
r2823r2824
260254
261255MSX_SLOT_MAP(konami)
262256{
263   running_machine *machine = Machine;
264257   switch (page) {
265258   case 0:
266259      msx_cpu_setbank (machine, 1, state->mem);
r2823r2824
285278   switch (addr) {
286279   case 0x6000:
287280      state->banks[1] = val & state->bank_mask;
288      slot_konami_map (state, 1);
281      slot_konami_map (machine, state, 1);
289282      if (msx1.state[0] == state) {
290         slot_konami_map (state, 0);
283         slot_konami_map (machine, state, 0);
291284      }
292285      break;
293286   case 0x8000:
294287      state->banks[2] = val & state->bank_mask;
295      slot_konami_map (state, 2);
288      slot_konami_map (machine, state, 2);
296289      if (msx1.state[3] == state) {
297         slot_konami_map (state, 3);
290         slot_konami_map (machine, state, 3);
298291      }
299292      break;
300293   case 0xa000:
301294      state->banks[3] = val & state->bank_mask;
302      slot_konami_map (state, 2);
295      slot_konami_map (machine, state, 2);
303296      if (msx1.state[3] == state) {
304         slot_konami_map (state, 3);
297         slot_konami_map (machine, state, 3);
305298      }
306299   }
307300}
r2823r2824
354347
355348MSX_SLOT_MAP(konami_scc)
356349{
357   running_machine *machine = Machine;
358350   switch (page) {
359351   case 0:
360352      msx_cpu_setbank (machine, 1, state->mem + state->banks[2] * 0x2000);
r2823r2824
378370
379371MSX_SLOT_WRITE(konami_scc)
380372{
381   running_machine *machine = Machine;
382
383373   if (addr >= 0x5000 && addr < 0x5800) {
384374      state->banks[0] = val & state->bank_mask;
385      slot_konami_scc_map (state, 1);
375      slot_konami_scc_map (machine, state, 1);
386376      if (msx1.state[3] == state) {
387         slot_konami_scc_map (state, 3);
377         slot_konami_scc_map (machine, state, 3);
388378      }
389379   }
390380   else if (addr >= 0x7000 && addr < 0x7800) {
391381      state->banks[1] = val & state->bank_mask;
392      slot_konami_scc_map (state, 1);
382      slot_konami_scc_map (machine, state, 1);
393383      if (msx1.state[3] == state) {
394         slot_konami_scc_map (state, 3);
384         slot_konami_scc_map (machine, state, 3);
395385      }
396386   }
397387   else if (addr >= 0x9000 && addr < 0x9800) {
398388      state->banks[2] = val & state->bank_mask;
399389      state->cart.scc.active = ((val & 0x3f) == 0x3f);
400      slot_konami_scc_map (state, 2);
390      slot_konami_scc_map (machine, state, 2);
401391      if (msx1.state[0] == state) {
402         slot_konami_scc_map (state, 0);
392         slot_konami_scc_map (machine, state, 0);
403393      }
404394   }
405395   else if (state->cart.scc.active && addr >= 0x9800 && addr < 0xa000) {
r2823r2824
428418   }
429419   else if (addr >= 0xb000 && addr < 0xb800) {
430420      state->banks[3] = val & state->bank_mask;
431      slot_konami_scc_map (state, 2);
421      slot_konami_scc_map (machine, state, 2);
432422      if (msx1.state[0] == state) {
433         slot_konami_scc_map (state, 0);
423         slot_konami_scc_map (machine, state, 0);
434424      }
435425   }
436426}
r2823r2824
466456
467457MSX_SLOT_MAP(ascii8)
468458{
469   running_machine *machine = Machine;
470459   switch (page) {
471460   case 0:
472461      msx_cpu_setbank (machine, 1, msx1.empty);
r2823r2824
495484
496485      state->banks[bank] = val & state->bank_mask;
497486      if (bank <= 1) {
498         slot_ascii8_map (state, 1);
487         slot_ascii8_map (machine, state, 1);
499488      }
500489      else if (msx1.state[2] == state) {
501         slot_ascii8_map (state, 2);
490         slot_ascii8_map (machine, state, 2);
502491      }
503492   }
504493}
r2823r2824
534523
535524MSX_SLOT_MAP(ascii16)
536525{
537   running_machine *machine = Machine;
538526   UINT8 *mem;
539527
540528   switch (page) {
r2823r2824
562550{
563551   if (addr >= 0x6000 && addr < 0x6800) {
564552      state->banks[0] = val & state->bank_mask;
565      slot_ascii16_map (state, 1);
553      slot_ascii16_map (machine, state, 1);
566554   }
567555   else if (addr >= 0x7000 && addr < 0x7800) {
568556      state->banks[1] = val & state->bank_mask;
569557      if (msx1.state[2] == state) {
570         slot_ascii16_map (state, 2);
558         slot_ascii16_map (machine, state, 2);
571559      }
572560   }
573561}
r2823r2824
626614
627615MSX_SLOT_MAP(ascii8_sram)
628616{
629   running_machine *machine = Machine;
630617   switch (page) {
631618   case 0:
632619      msx_cpu_setbank (machine, 1, msx1.empty);
r2823r2824
655642
656643      state->banks[bank] = val;
657644      if (bank <= 1) {
658         slot_ascii8_sram_map (state, 1);
645         slot_ascii8_sram_map (machine, state, 1);
659646      }
660647      else if (msx1.state[2] == state) {
661         slot_ascii8_sram_map (state, 2);
648         slot_ascii8_sram_map (machine, state, 2);
662649      }
663650   }
664651   if (addr >= 0x8000 && addr < 0xc000) {
r2823r2824
778765
779766MSX_SLOT_MAP(ascii16_sram)
780767{
781   running_machine *machine = Machine;
782768   UINT8 *mem;
783769
784770   switch (page) {
r2823r2824
806792{
807793   if (addr >= 0x6000 && addr < 0x6800) {
808794      state->banks[0] = val;
809      slot_ascii16_sram_map (state, 1);
795      slot_ascii16_sram_map (machine, state, 1);
810796   }
811797   else if (addr >= 0x7000 && addr < 0x7800) {
812798      state->banks[1] = val;
813799      if (msx1.state[2] == state) {
814         slot_ascii16_sram_map (state, 2);
800         slot_ascii16_sram_map (machine, state, 2);
815801      }
816802   }
817803   else if (addr >= 0x8000 && addr < 0xc000) {
r2823r2824
914900
915901MSX_SLOT_MAP(rtype)
916902{
917   running_machine *machine = Machine;
918903   UINT8 *mem;
919904
920905   switch (page) {
r2823r2824
951936      }
952937      state->banks[0] = data;
953938      if (msx1.state[2] == state) {
954         slot_rtype_map (state, 2);
939         slot_rtype_map (machine, state, 2);
955940      }
956941   }
957942}
r2823r2824
990975
991976MSX_SLOT_MAP(gmaster2)
992977{
993   running_machine *machine = Machine;
994978   switch (page) {
995979   case 0:
996980   case 1:
r2823r2824
10331017         val = val & 15;
10341018      }
10351019      state->banks[1] = val;
1036      slot_gmaster2_map (state, 1);
1020      slot_gmaster2_map (machine, state, 1);
10371021      if (msx1.state[0] == state) {
1038         slot_gmaster2_map (state, 0);
1022         slot_gmaster2_map (machine, state, 0);
10391023      }
10401024   }
10411025   else if (addr >= 0x8000 && addr < 0x9000) {
r2823r2824
10461030         val = val & 15;
10471031      }
10481032      state->banks[2] = val;
1049      slot_gmaster2_map (state, 2);
1033      slot_gmaster2_map (machine, state, 2);
10501034      if (msx1.state[3] == state) {
1051         slot_gmaster2_map (state, 3);
1035         slot_gmaster2_map (machine, state, 3);
10521036      }
10531037   }
10541038   else if (addr >= 0xa000 && addr < 0xb000) {
r2823r2824
10591043         val = val & 15;
10601044      }
10611045      state->banks[3] = val;
1062      slot_gmaster2_map (state, 2);
1046      slot_gmaster2_map (machine, state, 2);
10631047      if (msx1.state[3] == state) {
1064         slot_gmaster2_map (state, 3);
1048         slot_gmaster2_map (machine, state, 3);
10651049      }
10661050   }
10671051   else if (addr >= 0xb000 && addr < 0xc000) {
r2823r2824
11841168
11851169MSX_SLOT_MAP(diskrom)
11861170{
1187   running_machine *machine = Machine;
11881171   switch (page) {
11891172   case 0:
11901173      msx_cpu_setbank (machine, 1, msx1.empty);
r2823r2824
12091192
12101193MSX_SLOT_WRITE(diskrom)
12111194{
1212   running_machine *machine = Machine;
1213
12141195   if (addr >= 0xa000 && addr < 0xc000) {
12151196      addr -= 0x4000;
12161197   }
r2823r2824
12981279
12991280MSX_SLOT_MAP(diskrom2)
13001281{
1301   running_machine *machine = Machine;
13021282   switch (page) {
13031283   case 0:
13041284      msx_cpu_setbank (machine, 1, msx1.empty);
r2823r2824
13221302
13231303MSX_SLOT_WRITE(diskrom2)
13241304{
1325   running_machine *machine = Machine;
1326
13271305   if (addr >= 0xa000 && addr < 0xc000) {
13281306      addr -= 0x4000;
13291307   }
r2823r2824
13721350
13731351MSX_SLOT_MAP(synthesizer)
13741352{
1375   running_machine *machine = Machine;
13761353   switch (page) {
13771354   case 0:
13781355      msx_cpu_setbank (machine, 1, msx1.empty);
r2823r2824
14241401
14251402MSX_SLOT_MAP(majutsushi)
14261403{
1427   running_machine *machine = Machine;
14281404   switch (page) {
14291405   case 0:
14301406      msx_cpu_setbank (machine, 1, state->mem + state->banks[0] * 0x2000);
r2823r2824
14521428   }
14531429   else if (addr >= 0x6000 && addr < 0x8000) {
14541430      state->banks[1] = val & 0x0f;
1455      slot_majutsushi_map (state, 1);
1431      slot_majutsushi_map (machine, state, 1);
14561432      if (msx1.state[0] == state) {
1457         slot_konami_map (state, 0);
1433         slot_konami_map (machine, state, 0);
14581434      }
14591435   }
14601436   else if (addr >= 0x8000 && addr < 0xc000) {
14611437      state->banks[addr < 0xa000 ? 2 : 3] = val & 0x0f;
1462      slot_majutsushi_map (state, 2);
1438      slot_majutsushi_map (machine, state, 2);
14631439      if (msx1.state[3] == state) {
1464         slot_konami_map (state, 3);
1440         slot_konami_map (machine, state, 3);
14651441      }
14661442   }
14671443}
r2823r2824
15291505
15301506MSX_SLOT_MAP(fmpac)
15311507{
1532   running_machine *machine = Machine;
15331508   if (page == 1) {
15341509      if (state->cart.fmpac.sram_active) {
15351510         msx_cpu_setbank (machine, 3, state->cart.fmpac.mem);
r2823r2824
15481523
15491524MSX_SLOT_WRITE(fmpac)
15501525{
1551   running_machine *machine = Machine;
15521526   int i, data;
15531527
15541528   if (addr >= 0x4000 && addr < 0x6000 && state->cart.fmpac.sram_support) {
r2823r2824
15871561   case 0x7ff7:
15881562      state->banks[0] = val & state->bank_mask;
15891563      state->cart.fmpac.mem[0x3ff7] = val & state->bank_mask;
1590      slot_fmpac_map (state, 1);
1564      slot_fmpac_map (machine, state, 1);
15911565      break;
15921566   }
15931567}
r2823r2824
16851659
16861660MSX_SLOT_MAP(superloadrunner)
16871661{
1688   running_machine *machine = Machine;
16891662   if (page == 2) {
16901663      UINT8 *mem = state->mem +
16911664            (msx1.superloadrunner_bank & state->bank_mask) * 0x4000;
r2823r2824
17191692
17201693MSX_SLOT_MAP(crossblaim)
17211694{
1722   running_machine *machine = Machine;
17231695   UINT8 *mem;
17241696
17251697   /* This might look odd, but it's what happens on the real cartridge */
r2823r2824
17641736   state->banks[0] = block;
17651737
17661738   if (msx1.state[0] == state) {
1767      slot_crossblaim_map (state, 0);
1739      slot_crossblaim_map (machine, state, 0);
17681740   }
17691741   if (msx1.state[2] == state) {
1770      slot_crossblaim_map (state, 2);
1742      slot_crossblaim_map (machine, state, 2);
17711743   }
17721744   if (msx1.state[3] == state) {
1773      slot_crossblaim_map (state, 3);
1745      slot_crossblaim_map (machine, state, 3);
17741746   }
17751747}
17761748
r2823r2824
18061778
18071779MSX_SLOT_MAP(korean80in1)
18081780{
1809   running_machine *machine = Machine;
18101781   switch (page) {
18111782   case 0:
18121783      msx_cpu_setbank (machine, 1, msx1.empty);
r2823r2824
18351806
18361807      state->banks[bank] = val & state->bank_mask;
18371808      if (bank <= 1) {
1838         slot_korean80in1_map (state, 1);
1809         slot_korean80in1_map (machine, state, 1);
18391810      }
18401811      else if (msx1.state[2] == state) {
1841         slot_korean80in1_map (state, 2);
1812         slot_korean80in1_map (machine, state, 2);
18421813      }
18431814   }
18441815}
r2823r2824
18711842
18721843MSX_SLOT_MAP(korean90in1)
18731844{
1874   running_machine *machine = Machine;
18751845   UINT8 *mem;
18761846   UINT8 mask = (msx1.korean90in1_bank & 0xc0) == 0x80 ? 0x3e : 0x3f;
18771847   mem = state->mem +
r2823r2824
19371907
19381908MSX_SLOT_MAP(korean126in1)
19391909{
1940   running_machine *machine = Machine;
19411910   UINT8 *mem;
19421911
19431912   switch (page) {
r2823r2824
19671936      int bank = addr & 1;
19681937      state->banks[bank] = val & state->bank_mask;
19691938      if (bank == 0) {
1970         slot_korean126in1_map (state, 1);
1939         slot_korean126in1_map (machine, state, 1);
19711940      }
19721941      else if (msx1.state[2] == state) {
1973         slot_korean126in1_map (state, 2);
1942         slot_korean126in1_map (machine, state, 2);
19741943      }
19751944   }
19761945}
r2823r2824
20602029
20612030MSX_SLOT_MAP(soundcartridge)
20622031{
2063   running_machine *machine = Machine;
20642032   switch (page) {
20652033   case 0:
20662034      msx_cpu_setbank (machine, 1, state->mem + state->banks[2] * 0x2000);
r2823r2824
20882056MSX_SLOT_WRITE(soundcartridge)
20892057{
20902058   int i;
2091   running_machine *machine = Machine;
20922059
20932060   if (addr < 0x4000) {
20942061      return;
r2823r2824
21002067      else if (addr >= 0x5000 && addr < 0x5800) {
21012068         state->banks[0] = val & state->bank_mask;
21022069         state->cart.sccp.banks_saved[0] = val;
2103         slot_soundcartridge_map (state, 1);
2070         slot_soundcartridge_map (machine, state, 1);
21042071         if (msx1.state[3] == state) {
2105            slot_soundcartridge_map (state, 3);
2072            slot_soundcartridge_map (machine, state, 3);
21062073         }
21072074      }
21082075   }
r2823r2824
21142081         state->banks[1] = val & state->bank_mask;
21152082         state->cart.sccp.banks_saved[1] = val;
21162083         if (msx1.state[3] == state) {
2117            slot_soundcartridge_map (state, 3);
2084            slot_soundcartridge_map (machine, state, 3);
21182085         }
2119         slot_soundcartridge_map (state, 1);
2086         slot_soundcartridge_map (machine, state, 1);
21202087      }
21212088   }
21222089   else if (addr < 0xa000) {
r2823r2824
21292096         state->cart.sccp.scc_active =
21302097               (((val & 0x3f) == 0x3f) && !(state->cart.sccp.mode & 0x20));
21312098
2132         slot_soundcartridge_map (state, 2);
2099         slot_soundcartridge_map (machine, state, 2);
21332100         if (msx1.state[0] == state) {
2134            slot_soundcartridge_map (state, 0);
2101            slot_soundcartridge_map (machine, state, 0);
21352102         }
21362103      }
21372104      else if (addr >= 0x9800 && state->cart.sccp.scc_active) {
r2823r2824
21692136         state->banks[3] = val & state->bank_mask;
21702137         state->cart.sccp.sccp_active =
21712138               (val & 0x80) && (state->cart.sccp.mode & 0x20);
2172         slot_soundcartridge_map (state, 2);
2139         slot_soundcartridge_map (machine, state, 2);
21732140         if (msx1.state[0] == state) {
2174            slot_soundcartridge_map (state, 0);
2141            slot_soundcartridge_map (machine, state, 0);
21752142         }
21762143      }
21772144      else if (addr >= 0xb800 && state->cart.sccp.sccp_active) {
r2823r2824
22282195      state->cart.sccp.sccp_active =
22292196            ((state->cart.sccp.banks_saved[3] & 0x80) && (val & 0x20));
22302197
2231      slot_soundcartridge_map (state, 2);
2198      slot_soundcartridge_map (machine, state, 2);
22322199   }
22332200}
22342201
src/mess/machine/msx.c
r2823r2824
284284static void msx_ch_reset_core (running_machine *machine)
285285{
286286   msx_memory_reset (machine);
287   msx_memory_map_all ();
287   msx_memory_map_all (machine);
288288}
289289
290290static const TMS9928a_interface tms9928a_interface =
r2823r2824
699699
700700   if (VERBOSE)
701701      logerror ("write to primary slot select: %02x\n", msx1.primary_slot);
702   msx_memory_map_all ();
702   msx_memory_map_all (machine);
703703}
704704
705705static WRITE8_HANDLER ( msx_ppi_port_c_w )
r2823r2824
932932   }
933933}
934934
935void msx_memory_map_page (int page)
935void msx_memory_map_page (running_machine *machine, int page)
936936{
937937   int slot_primary;
938938   int slot_secondary;
r2823r2824
952952      logerror ("mapping %s in %d/%d/%d\n", slot->name, slot_primary,
953953         slot_secondary, page);
954954   }
955   slot->map (state, page);
955   slot->map (machine, state, page);
956956}
957957
958void msx_memory_map_all (void)
958void msx_memory_map_all (running_machine *machine)
959959{
960960   int i;
961961
962962   for (i=0; i<4; i++) {
963      msx_memory_map_page (i);
963      msx_memory_map_page (machine, i);
964964   }
965965}
966966
r2823r2824
968968{
969969   msx1.superloadrunner_bank = data;
970970   if (msx1.slot[2]->slot_type == SLOT_SUPERLOADRUNNER) {
971      msx1.slot[2]->map (msx1.state[2], 2);
971      msx1.slot[2]->map (machine, msx1.state[2], 2);
972972   }
973973   msx_page0_w(machine, -1, data);
974974}
r2823r2824
982982      msx1.ram_pages[0][offset] = data;
983983      break;
984984   case MSX_MEM_HANDLER:
985      msx1.slot[0]->write (msx1.state[0], offset, data);
985      msx1.slot[0]->write (machine, msx1.state[0], offset, data);
986986   }
987987}
988988
r2823r2824
993993      msx1.ram_pages[1][offset] = data;
994994      break;
995995   case MSX_MEM_HANDLER:
996      msx1.slot[1]->write (msx1.state[1], 0x4000 + offset, data);
996      msx1.slot[1]->write (machine, msx1.state[1], 0x4000 + offset, data);
997997   }
998998}
999999
r2823r2824
10041004      msx1.ram_pages[2][offset] = data;
10051005      break;
10061006   case MSX_MEM_HANDLER:
1007      msx1.slot[2]->write (msx1.state[2], 0x8000 + offset, data);
1007      msx1.slot[2]->write (machine, msx1.state[2], 0x8000 + offset, data);
10081008   }
10091009}
10101010
r2823r2824
10151015      msx1.ram_pages[3][offset] = data;
10161016      break;
10171017   case MSX_MEM_HANDLER:
1018      msx1.slot[3]->write (msx1.state[3], 0xc000 + offset, data);
1018      msx1.slot[3]->write (machine, msx1.state[3], 0xc000 + offset, data);
10191019   }
10201020}
10211021
r2823r2824
10281028         logerror ("write to secondary slot %d select: %02x\n", slot, data);
10291029
10301030      msx1.secondary_slot[slot] = data;
1031      msx_memory_map_all ();
1031      msx_memory_map_all (machine);
10321032   }
10331033   else {
10341034      msx_page3_w(machine, 0x3fff, data);
r2823r2824
10521052{
10531053   msx1.ram_mapper[offset] = data;
10541054   if (msx1.slot[offset]->slot_type == SLOT_RAM_MM) {
1055      msx1.slot[offset]->map (msx1.state[offset], offset);
1055      msx1.slot[offset]->map (machine, msx1.state[offset], offset);
10561056   }
10571057}
10581058
r2823r2824
10661066   msx1.korean90in1_bank = data;
10671067   if (msx1.slot[1]->slot_type == SLOT_KOREAN_90IN1)
10681068   {
1069      msx1.slot[1]->map (msx1.state[1], 1);
1069      msx1.slot[1]->map (machine, msx1.state[1], 1);
10701070   }
10711071   if (msx1.slot[2]->slot_type == SLOT_KOREAN_90IN1)
10721072   {
1073      msx1.slot[2]->map (msx1.state[2], 2);
1073      msx1.slot[2]->map (machine, msx1.state[2], 2);
10741074   }
10751075}
10761076

Previous 15994 Revisions Next


© 1998-2018 The MESS Team