Previous 15994 Revisions Next

r14943 Monday 16th April, 2012 at 13:06:51 UTC by Curt Coder
[C64] Cartridge WIP. (nw)
[hash]c64_cart.xml c64_flop.xml
[src/mess]mess.mak
[src/mess/machine]c64_easy_calc_result.c c64_multiscreen.c c64_multiscreen.h c64_ocean.c c64_ps64.c* c64_ps64.h* cbmipt.c cbmipt.h

hash/c64_cart.xml
r14942r14943
246246   </software>
247247
248248   <software name="ps64" supported="no">
249      <description>PS-64 puhemoduli v1.0 (Fin)</description>
250      <year>1988</year>
251      <publisher>Koulun erityispalvelu</publisher>
252
253      <part name="cart" interface="c64_cart">
254         <feature name="slot" value="ps64" />
255         <feature name="game" value="1" />
256         <feature name="exrom" value="0" />
257
258         <dataarea name="roml" size="0x2000">
259            <rom name="ps-64.bin" size="0x2000" crc="0613bd98" sha1="a255e3a42d65ffffe835d9ac06034caf371d6994" offset="0x0000" />
260         </dataarea>
261      </part>
262   </software>
263
264   <software name="ps64v2" cloneof="ps64" supported="no">
249265      <description>PS-64 puhemoduli v2.0 (Fin)</description>
250266      <year>1988</year>
251267      <publisher>Koulun erityispalvelu</publisher>
252      <!--
253      |===========================|
254      |=|                         |
255      |=|                      SW1|
256      |=|       SC02              |
257      |=|                         |
258      |=|                      CN1|
259      |=|       ROM        LF347  |
260      |=|                         |
261      |=|                         |
262      |===========================|
263268
264      SC02  - Votrax SSI-263AP Speech Synthesizer (mapped at 0xde00-0xde04)
265      ROM   - Hynix Semiconductor HY27C64D-20 8Kx8 EPROM
266      LF347 - National Instruments LF347N JFET Operational Amplifier
267      SW1   - Module on/off switch
268      CN1   - connector to C64 video/audio port
269      -->
270269      <part name="cart" interface="c64_cart">
271270         <feature name="slot" value="ps64" />
272271         <feature name="game" value="1" />
273272         <feature name="exrom" value="0" />
274         <feature name="speech" value="SSI-263AP" />
275273
276274         <dataarea name="roml" size="0x2000">
277275            <rom name="unlabeled" size="0x2000" crc="793ced42" sha1="8f66fde8ec8ed6fd8fb597df39d2867ecc58d7e1" offset="0x0000" />
r14942r14943
321319      <description>Pagefox (Fin)</description>
322320      <year>1987</year>
323321      <publisher>Scanntronik</publisher>
324      <!--
325      |===========================|
326      |=|                         |
327      |=|     RAM         LS11    |
328      |=|                         |
329      |=|                 LS139   |
330      |=|     ROM0                |
331      |=|                 LS273   |
332      |=|                         |
333      |=|     ROM1        LS00    |
334      |===========================|
335322
336      RAM   - NEC D43256-12L 32Kx8 RAM
337      ROM0  - SGS M27256-2FI 32Kx8 EPROM
338      ROM1  - National Instruments NMC27C256Q 32Kx8 EPROM
339      -->
340323      <part name="cart" interface="c64_cart">
341324         <feature name="slot" value="pagefox" />
342325         <feature name="game" value="0" />
r14942r14943
355338      <description>Easy Calc Result</description>
356339      <year>1985</year>
357340      <publisher>Handic Software</publisher>
358      <!--
359      |===========================|
360      |=|                         |
361      |=|     ROM0        LS73    |
362      |=|                         |
363      |=|                         |
364      |=|                         |
365      |=|                         |
366      |=|     ROM1        LS00    |
367      |=|                         |
368      |===========================|
369341
370      ROM0  - Hitachi HN61364P 8Kx8 EPROM "CR2001"
371      ROM1  - Hitachi HN613128P 16Kx8 EPROM "CR3001"
372      -->
373342      <part name="cart" interface="c64_cart">
374343         <feature name="slot" value="easycalcres" />
375344         <feature name="game" value="0" />
r14942r14943
460429      <description>Multiscreen (Aus)</description>
461430      <year>1987</year>
462431      <publisher>Multiscreen Pty</publisher>
463      <!--
464                      |===================|
465                      |           ROM6    |
466                      |  MC14066          |
467                      |                   |
468      |===============|           ROM5    |
469      |=|                                 |
470      |=|                                 |
471      |=|    RAM         BAT      ROM4    |
472      |=|                                 |
473      |=|                                 |
474      |=|    ROM0                 ROM3    |
475      |=|                                 |
476      |=|                                 |
477      |===============|  LS138    ROM2    |
478                      |  LS138            |
479                      |  LS174            |
480                      |  LS133    ROM1    |
481                      |===================|
482432
483      BAT   - BR2325 lithium battery
484      RAM   - ? 8Kx8 RAM
485      ROM0  - ? 16Kx8 EPROM
486      ROM1  - ? 32Kx8 EPROM
487      ROM2  - ? 32Kx8 EPROM
488      ROM3  - ? 32Kx8 EPROM
489      ROM4  - not populated
490      ROM5  - not populated
491      ROM6  - not populated
492
493      bankswitching latch at I/O2 ($DF00..$DFFF) (write $0D -> RAM @8000)
494      -->
495433      <part name="cart" interface="c64_cart">
496434         <feature name="slot" value="multiscreen" />
497435         <feature name="game" value="0" />
r14942r14943
505443            <rom name="cart-4.bin" size="0x8000" crc="042678ef" sha1="ff2582c617f72bf57be7d76bcf8270665144f924" offset="0x14000" />
506444         </dataarea>
507445
508         <dataarea name="ram" size="0x2000" />
446         <dataarea name="nvram" size="0x2000" />
509447      </part>
510      <!--
511      -->
512      <part name="driver_board" interface="device">
513         <feature name="pcb" value="RDL77" />
514         <feature name="xtal" value="4000000" />
515         <feature name="cpu" value="MC6802P" />
516         <feature name="pia1" value="MC6821P" />
517         <feature name="pia2" value="MC6821P" />
518         <feature name="ram1" value="MC6810P" />
519         <feature name="ram2" value="MC6810P" />
520
521         <dataarea name="rom" size="0x2000">
522            <rom name="1" size="0x1000" crc="35be02a8" sha1="5912bc3d8e0c0949c1e66c19116d6b71c7574e46" offset="0x0000" />
523            <rom name="1 2cr" size="0x1000" crc="76a9ac6d" sha1="87e7335e626bdb73498b46c28c7baab72df38d1f" offset="0x1000" />
524         </dataarea>
525
526         <dataarea name="ram" size="0x100" />
527      </part>
528448   </software>
529449
530450   <software name="4040fast" supported="no">
r14942r14943
564484      <description>Skærmtrolden Hugo (Den)</description>
565485      <year>1990</year>
566486      <publisher>SilverRock Productions</publisher>
567      <!--
568      e9048
569      |=============|
570      |=| LS00      |
571      |=|      LS273|
572      |=|           |
573      |=|           |
574      |=| ROM       |
575      |=|           |
576      |=|           |
577      |=|           |
578      |=============|
579487
580      ROM     - Atmel AT27C010-25PC 128Kx8 OTP EPROM "HUGO 2012"
581
582      data and address lines are scrambled:
583      data = BITSWAP8(7,6,5,4,0,1,2,3)
584      address = BITSWAP17(D6,D5,D4,D7,12,7,6,5,4,3,2,1,0,8,9,11,10)
585
586      bankswitching latch at I/O1 ($DE00..$DEFF): D6=A16, D5=A15, D4=A14, D7=A13
587      latch is cleared to 0 on computer reset
588      -->
589488      <part name="cart" interface="c64_cart">
590489         <feature name="slot" value="silverrock" />
591490         <feature name="game" value="0" />
r14942r14943
602501      <description>Chase H.Q. 2: Special Criminal Investigation</description>
603502      <year>1990</year>
604503      <publisher>Ocean</publisher>
605      <!--
606      |===========================|
607      |=|                   LS02  |
608      |=|                         |
609      |=|                         |
610      |=|    ROM0   ROM1          |
611      |=|                   LS273 |
612      |=|                         |
613      |=|                         |
614      |=|                         |
615      |===========================|
616504
617      ROM0,1 - 28-pin ROM (Toshiba TC531000 pinout, markings scratched off)
618      bankswitch latch @ I/O1: D3-D0 = A16-A13
619      -->
620505      <part name="cart" interface="c64_cart">
621506         <feature name="slot" value="ocean" />
622507         <feature name="game" value="0" />
r14942r14943
638523      <description>XL 80</description>
639524      <year>1984</year>
640525      <publisher>Data 20</publisher>
641      <!--
642              |==================================|
643              |   LS175    LS20    LS139         |
644              |   LS157                          |
645      |=======|                                  |
646      |=|                          RAM           |
647      |=|    LS157      LS157             LS165  |
648      |=|                                        |
649      |=|                                     CN1|
650      |=|          CRTC            ROM1          |
651      |=|                                        |
652      |=|    ROM0          LS245   LS151         |
653      |=|                             14.31818MHz|
654      |=======|            LS174   LS00          |
655              |                           HCU04  |
656              |    LS74    LS161   LS74          |
657              |==================================|
658526
659      CRTC - Hitachi HD46505SP
660      RAM  - Toshiba TMM2016AP-12 2Kx8 Static RAM
661      ROM0 - GI 9433CS-0090 4Kx8 ROM
662      ROM1 - GI 9316CS-F67 2Kx8 ROM "DTC"
663      CN1  - RCA video output
664      -->
665527      <part name="cart" interface="c64_cart">
666528         <feature name="slot" value="xl80" />
667529         <feature name="game" value="1" />
r14942r14943
675537            <rom name="dtc.u14" size="0x800" crc="9edf5e58" sha1="4b244e6d94a7653a2e52c351589f0b469119fb04" offset="0x0000" />
676538         </dataarea>
677539      </part>
540
678541      <part name="flop" interface="floppy_5_25">
679542         <dataarea name="flop" size="174848">
680543            <rom name="xl 80 system software.d64" size="174848" crc="7fc45fca" sha1="c8c890ecd826dd9c3b1a1254793f73dc0ef9ef95" offset="0" />
hash/c64_flop.xml
r14942r14943
310310      <description>BASIC-kääntäjä (Fin)</description>
311311      <year>1984</year>
312312      <publisher>Amersoft</publisher>
313
313314      <part name="flop" interface="floppy_5_25">
314315         <dataarea name="flop" size="333744">
315316            <rom name="basic-kaantaja[amersoft_1984].nbz" size="333744" crc="68ffade3" sha1="951e63d05c0911abcc247ff8327b7239fc0c9e86" offset="0" />
r14942r14943
321322      <description>SuperBase 64 (Fin)</description>
322323      <year>1983</year>
323324      <publisher>Precision</publisher>
325
324326      <part name="flop" interface="floppy_5_25">
325327         <dataarea name="flop" size="333744">
326328            <rom name="superbase_64[precision_1983](finnish).nbz" size="333744" crc="83eb8f50" sha1="2cff03d08f15f8d66fad9d20233fc4d87f71395c" offset="0" />
r14942r14943
328330      </part>
329331   </software>
330332
333   <!-- Educational -->
334
335   <software name="kats1">
336      <description>KÄTS-opetuslevy 1 (Fin)</description>
337      <year>1989</year>
338      <publisher>Koulun erityispalvelu</publisher>
339      <sharedfeat name="requirement" value="c64_cart:ps64"/>
340   
341      <part name="flop1" interface="floppy_5_25">
342         <dataarea name="flop" size="174848">
343            <rom name="kats-1.d64" size="174848" crc="076e961a" sha1="011922880a227d388a77b5c179d7540d6118469d" offset="0" />
344         </dataarea>
345      </part>
346   </software>
347
348   <software name="kats2">
349      <description>KÄTS-opetuslevy 2 (Fin)</description>
350      <year>1989</year>
351      <publisher>Koulun erityispalvelu</publisher>
352      <sharedfeat name="requirement" value="c64_cart:ps64"/>
353   
354      <part name="flop1" interface="floppy_5_25">
355         <dataarea name="flop" size="174848">
356            <rom name="kats-2.d64" size="174848" crc="44a5f655" sha1="eecb240de09b8adfaac68190e490984ea7e62304" offset="0" />
357         </dataarea>
358      </part>
359   </software>
360
361   <software name="kertolas">
362      <description>Kertolasku (Fin)</description>
363      <year>1986</year>
364      <publisher>Koulun erityispalvelu</publisher>
365      <sharedfeat name="requirement" value="c64_cart:ps64"/>
366   
367      <part name="flop1" interface="floppy_5_25">
368         <dataarea name="flop" size="174848">
369            <rom name="kertolasku.d64" size="174848" crc="78f4ad0d" sha1="4ef1552535c26bf6c884f463d69f6e11fe152a9c" offset="0" />
370         </dataarea>
371      </part>
372   </software>
373
374   <software name="lrsharj">
375      <description>LRS-harjoitus (Fin)</description>
376      <year>1988</year>
377      <publisher>Koulun erityispalvelu</publisher>
378      <sharedfeat name="requirement" value="c64_cart:ps64"/>
379   
380      <part name="flop1" interface="floppy_5_25">
381         <dataarea name="flop" size="174848">
382            <rom name="lrs-harjoitus.d64" size="174848" crc="ed5ce5ae" sha1="ca4eabc7d41db9f56e434ba8f38d7f24ad2fe5b7" offset="0" />
383         </dataarea>
384      </part>
385   </software>
386
387   <software name="opinkirj">
388      <description>Opin kirjoittamaan (Fin)</description>
389      <year>1985</year>
390      <publisher>Koulun erityispalvelu</publisher>
391      <sharedfeat name="requirement" value="c64_cart:ps64"/>
392   
393      <part name="flop1" interface="floppy_5_25">
394         <dataarea name="flop" size="174848">
395            <rom name="opin_kirjoittamaan.d64" size="174848" crc="6125f441" sha1="e1d908644529eb3c0e4fef4be7b394a697d6bb9a" offset="0" />
396         </dataarea>
397      </part>
398   </software>   
399
400   <software name="opinluk1">
401      <description>Opin lukemaan 1 (Fin)</description>
402      <year>1985</year>
403      <publisher>Koulun erityispalvelu</publisher>
404      <sharedfeat name="requirement" value="c64_cart:ps64"/>
405   
406      <part name="flop1" interface="floppy_5_25">
407         <dataarea name="flop" size="174848">
408            <rom name="opin_lukemaan_1.d64" size="174848" crc="70b4d79e" sha1="0f7ba68acfdca1b3fb8fc137b5b2c2292b6fc397" offset="0" />
409         </dataarea>
410      </part>
411   </software>
412
413   <software name="opinluk2">
414      <description>Opin lukemaan 2 (Fin)</description>
415      <year>1985</year>
416      <publisher>Koulun erityispalvelu</publisher>
417      <sharedfeat name="requirement" value="c64_cart:ps64"/>
418   
419      <part name="flop1" interface="floppy_5_25">
420         <dataarea name="flop" size="174848">
421            <rom name="opin_lukemaan_2.d64" size="174848" crc="58cb5f41" sha1="5cc321cb82f144b3faa88dbcb9b591657cdc66cf" offset="0" />
422         </dataarea>
423      </part>
424   </software>
425
426   <software name="psenglsh">
427      <description>PS-English (Fin)</description>
428      <year>1986</year>
429      <publisher>Koulun erityispalvelu</publisher>
430      <sharedfeat name="requirement" value="c64_cart:ps64"/>
431   
432      <part name="flop1" interface="floppy_5_25">
433         <dataarea name="flop" size="174848">
434            <rom name="ps-english.d64" size="174848" crc="18d66daa" sha1="35d9871fb337ada74f0788d4910dfba08d1d4c15" offset="0" />
435         </dataarea>
436      </part>
437   </software>
438
439   <software name="psmemory">
440      <description>PS-Memory (Fin)</description>
441      <year>1989</year>
442      <publisher>Koulun erityispalvelu</publisher>
443      <sharedfeat name="requirement" value="c64_cart:ps64"/>
444   
445      <part name="flop1" interface="floppy_5_25">
446         <dataarea name="flop" size="174848">
447            <rom name="ps-memory.d64" size="174848" crc="08a635cd" sha1="cd797378c35272ca65f35784fda7f4e42029d8ea" offset="0" />
448         </dataarea>
449      </part>
450   </software>
451
452   <software name="puventti">
453      <description>Puhuva venttipeli (Fin)</description>
454      <year>1986</year>
455      <publisher>Koulun erityispalvelu</publisher>
456      <sharedfeat name="requirement" value="c64_cart:ps64"/>
457   
458      <part name="flop1" interface="floppy_5_25">
459         <dataarea name="flop" size="174848">
460            <rom name="puhuva_venttipeli.d64" size="174848" crc="16661038" sha1="69c67d4e3c2f15285549df4cb19caae44ed2dc2a" offset="0" />
461         </dataarea>
462      </part>
463   </software>
464
465   <software name="vahennys">
466      <description>Vähennyslasku (Fin)</description>
467      <year>1986</year>
468      <publisher>Koulun erityispalvelu</publisher>
469      <sharedfeat name="requirement" value="c64_cart:ps64"/>
470   
471      <part name="flop1" interface="floppy_5_25">
472         <dataarea name="flop" size="174848">
473            <rom name="vahennyslasku.d64" size="174848" crc="e03d35ae" sha1="2fa26e548c577b647f3e23a93851c7cf4dc257ce" offset="0" />
474         </dataarea>
475      </part>
476   </software>
477
478   <software name="valmhrj1">
479      <description>Valmiusharjoituksia 1 (Fin)</description>
480      <year>198?</year>
481      <publisher>Koulun erityispalvelu</publisher>
482      <sharedfeat name="requirement" value="c64_cart:ps64"/>
483   
484      <part name="flop1" interface="floppy_5_25">
485         <dataarea name="flop" size="174848">
486            <rom name="valm-harj1.d64" size="174848" crc="190cf6d4" sha1="7ca9176a83c48f5b9aebbc3e38e9a847da9ffc3c" offset="0" />
487         </dataarea>
488      </part>
489   </software>
490
491   <software name="yhteenla">
492      <description>Yhteenlasku (Fin)</description>
493      <year>198?</year>
494      <publisher>Koulun erityispalvelu</publisher>
495      <sharedfeat name="requirement" value="c64_cart:ps64"/>
496   
497      <part name="flop1" interface="floppy_5_25">
498         <dataarea name="flop" size="174848">
499            <rom name="yhteenlasku.d64" size="174848" crc="c02a0821" sha1="17e03cd9d81ee2bf328e802354c149945a319450" offset="0" />
500         </dataarea>
501      </part>
502   </software>
503
331504</softwarelist>
src/mess/machine/cbmipt.c
r14942r14943
11781178   SLOT_INTERFACE("ocean", C64_OCEAN)
11791179   SLOT_INTERFACE("pagefox", C64_PAGEFOX)
11801180   SLOT_INTERFACE("prophet64", C64_PROPHET64)
1181   SLOT_INTERFACE("ps64", C64_PS64)
11811182   SLOT_INTERFACE("rex", C64_REX)
11821183   SLOT_INTERFACE("rex_ep256", C64_REX_EP256)
11831184   SLOT_INTERFACE("ross", C64_ROSS)
src/mess/machine/cbmipt.h
r14942r14943
3636#include "machine/c64_ocean.h"
3737#include "machine/c64_pagefox.h"
3838#include "machine/c64_prophet64.h"
39#include "machine/c64_ps64.h"
3940#include "machine/c64_rex.h"
4041#include "machine/c64_rex_ep256.h"
4142#include "machine/c64_ross.h"
src/mess/machine/c64_ocean.c
r14942r14943
77 
88**********************************************************************/
99 
10/*
11 
12   Chase H.Q. 2: Special Criminal Investigation
13 
14   PCB Layout
15   ----------
16 
17   |===========================|
18   |=|                   LS02  |
19   |=|                         |
20   |=|                         |
21   |=|    ROM0   ROM1          |
22   |=|                   LS273 |
23   |=|                         |
24   |=|                         |
25   |=|                         |
26   |===========================|
27 
28   ROM0,1 - 28-pin ROM (Toshiba TC531000 pinout, markings scratched off)
29 
30*/
31 
1032#include "c64_ocean.h"
1133 
1234 
src/mess/machine/c64_multiscreen.c
r14942r14943
5959//  MACROS/CONSTANTS
6060//**************************************************************************
6161 
62#define BANK_RAM   0x0d
62#define MC6802P_TAG      "m6802"
63#define MC6821P_0_TAG   "m6821_0"
64#define MC6821P_1_TAG   "m6821_1"
6365 
6466 
67#define BANK_RAM      0x0d
6568 
69 
70 
6671//**************************************************************************
6772//  DEVICE DEFINITIONS
6873//**************************************************************************
r14942r14943
7075const device_type C64_MULTISCREEN = &device_creator<c64_multiscreen_cartridge_device>;
7176 
7277 
78//-------------------------------------------------
79//  ROM( c64_multiscreen )
80//-------------------------------------------------
7381 
82ROM_START( c64_multiscreen )
83   ROM_REGION( 0x2000, MC6802P_TAG, 0 )
84   ROM_LOAD( "1",     0x0000, 0x1000, CRC(35be02a8) SHA1(5912bc3d8e0c0949c1e66c19116d6b71c7574e46) )
85   ROM_LOAD( "2 cr", 0x1000, 0x1000, CRC(76a9ac6d) SHA1(87e7335e626bdb73498b46c28c7baab72df38d1f) )
86ROM_END
87 
88 
89//-------------------------------------------------
90//  rom_region - device-specific ROM region
91//-------------------------------------------------
92 
93const rom_entry *c64_multiscreen_cartridge_device::device_rom_region() const
94{
95   return ROM_NAME( c64_multiscreen );
96}
97 
98 
99static ADDRESS_MAP_START( multiscreen_mem, AS_PROGRAM, 8, c64_multiscreen_cartridge_device )
100   AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION(MC6802P_TAG, 0)
101ADDRESS_MAP_END
102 
103 
104//-------------------------------------------------
105//  pia6821_interface pia0_intf -
106//-------------------------------------------------
107 
108static const pia6821_interface pia0_intf =
109{
110   DEVCB_NULL,      // input A
111   DEVCB_NULL,      // input B
112   DEVCB_NULL,      // input CA1
113   DEVCB_NULL,      // input CB1
114   DEVCB_NULL,      // input CA2
115   DEVCB_NULL,      // input CB2
116   DEVCB_NULL,      // output A
117   DEVCB_NULL,      // output B
118   DEVCB_NULL,      // output CA2
119   DEVCB_NULL,      // output CB2
120   DEVCB_NULL,      // irq A
121   DEVCB_NULL      // irq B
122};
123 
124 
125//-------------------------------------------------
126//  pia6821_interface pia1_intf -
127//-------------------------------------------------
128 
129static const pia6821_interface pia1_intf =
130{
131   DEVCB_NULL,      // input A
132   DEVCB_NULL,      // input B
133   DEVCB_NULL,      // input CA1
134   DEVCB_NULL,      // input CB1
135   DEVCB_NULL,      // input CA2
136   DEVCB_NULL,      // input CB2
137   DEVCB_NULL,      // output A
138   DEVCB_NULL,      // output B
139   DEVCB_NULL,      // output CA2
140   DEVCB_NULL,      // output CB2
141   DEVCB_NULL,      // irq A
142   DEVCB_NULL      // irq B
143};
144 
145 
146//-------------------------------------------------
147//  MACHINE_CONFIG_FRAGMENT( c64_multiscreen )
148//-------------------------------------------------
149 
150static MACHINE_CONFIG_FRAGMENT( c64_multiscreen )
151   MCFG_CPU_ADD(MC6802P_TAG, M6802, XTAL_4MHz)
152   MCFG_CPU_PROGRAM_MAP(multiscreen_mem)
153 
154   MCFG_PIA6821_ADD(MC6821P_0_TAG, pia0_intf)
155   MCFG_PIA6821_ADD(MC6821P_1_TAG, pia1_intf)
156MACHINE_CONFIG_END
157 
158 
159//-------------------------------------------------
160//  machine_config_additions - device-specific
161//  machine configurations
162//-------------------------------------------------
163 
164machine_config_constructor c64_multiscreen_cartridge_device::device_mconfig_additions() const
165{
166   return MACHINE_CONFIG_NAME( c64_multiscreen );
167}
168 
169 
170 
74171//**************************************************************************
75172//  LIVE DEVICE
76173//**************************************************************************
r14942r14943
121218 
122219      if (bank == BANK_RAM)
123220      {
124         data = m_ram[offset & 0x1fff];
221         data = m_nvram[offset & 0x1fff];
125222      }
126223      else
127224      {
r14942r14943
158255 
159256      if (bank == BANK_RAM)
160257      {
161         m_ram[offset & 0x1fff] = data;
258         m_nvram[offset & 0x1fff] = data;
162259      }
163260   }
164261   else if (!io2)
src/mess/machine/c64_multiscreen.h
r14942r14943
1414 
1515 
1616#include "emu.h"
17#include "cpu/m6800/m6800.h"
18#include "machine/6821pia.h"
1719#include "machine/c64exp.h"
1820 
1921 
r14942r14943
3133   // construction/destruction
3234   c64_multiscreen_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
3335 
36   // optional information overrides
37   virtual const rom_entry *device_rom_region() const;
38   virtual machine_config_constructor device_mconfig_additions() const;
39 
3440protected:
3541   // device-level overrides
36   virtual void device_config_complete() { m_shortname = "c64_multiscreen"; }
42   virtual void device_config_complete() { m_shortname = "c64_mscr"; }
3743   virtual void device_start();
3844   virtual void device_reset();
3945 
src/mess/machine/c64_easy_calc_result.c
r14942r14943
77 
88**********************************************************************/
99 
10/*
11 
12   PCB Layout
13   ----------
14 
15   |===========================|
16   |=|                         |
17   |=|     ROM0        LS73    |
18   |=|                         |
19   |=|                         |
20   |=|                         |
21   |=|                         |
22   |=|     ROM1        LS00    |
23   |=|                         |
24   |===========================|
25 
26   ROM0  - Hitachi HN61364P 8Kx8 EPROM "CR2001"
27   ROM1  - Hitachi HN613128P 16Kx8 EPROM "CR3001"
28 
29*/
30 
1031#include "c64_easy_calc_result.h"
1132 
1233 
src/mess/machine/c64_ps64.c
r0r14943
1/**********************************************************************
2
3    PS-64 speech cartridge emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10/*
11
12   PCB Layout
13   ----------
14
15   |===========================|
16   |=|                         |
17   |=|                      SW1|
18   |=|       SC02              |
19   |=|                         |
20   |=|                      CN1|
21   |=|       ROM        LF347  |
22   |=|                         |
23   |=|                         |
24   |===========================|
25
26   SC02  - Votrax SSI-263AP Speech Synthesizer
27   ROM   - Hynix Semiconductor HY27C64D-20 8Kx8 EPROM
28   LF347 - National Instruments LF347N JFET Operational Amplifier
29   SW1   - Module on/off switch
30   CN1   - connector to C64 video/audio port
31
32*/
33
34/*
35
36   TODO:
37
38   - Votrax SC02 emulation
39   - route sound to SID audio input
40   - on/off switch
41
42*/
43
44#include "c64_ps64.h"
45
46
47
48//**************************************************************************
49//  MACROS/CONSTANTS
50//**************************************************************************
51
52#define SSI263_TAG      "ssi263"
53
54
55
56//**************************************************************************
57//  DEVICE DEFINITIONS
58//**************************************************************************
59
60const device_type C64_PS64 = &device_creator<c64_ps64_cartridge_device>;
61
62
63//-------------------------------------------------
64//  votrax_sc02_interface votrax_intf
65//-------------------------------------------------
66/*
67static struct votrax_sc02_interface votrax_intf =
68{
69   DEVCB_NULL
70};
71*/
72
73//-------------------------------------------------
74//  MACHINE_CONFIG_FRAGMENT( c64_ps64 )
75//-------------------------------------------------
76
77static MACHINE_CONFIG_FRAGMENT( c64_ps64 )
78   MCFG_SPEAKER_STANDARD_MONO("mono")
79   //MCFG_VOTRAX_SC02_ADD(SSI263_TAG, 2000000, votrax_intf)
80   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
81MACHINE_CONFIG_END
82
83
84//-------------------------------------------------
85//  machine_config_additions - device-specific
86//  machine configurations
87//-------------------------------------------------
88
89machine_config_constructor c64_ps64_cartridge_device::device_mconfig_additions() const
90{
91   return MACHINE_CONFIG_NAME( c64_ps64 );
92}
93
94
95
96//**************************************************************************
97//  LIVE DEVICE
98//**************************************************************************
99
100//-------------------------------------------------
101//  c64_ps64_cartridge_device - constructor
102//-------------------------------------------------
103
104c64_ps64_cartridge_device::c64_ps64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
105   device_t(mconfig, C64_PS64, "C64 PS-64", tag, owner, clock),
106   device_c64_expansion_card_interface(mconfig, *this)
107{
108}
109
110
111//-------------------------------------------------
112//  device_start - device-specific startup
113//-------------------------------------------------
114
115void c64_ps64_cartridge_device::device_start()
116{
117}
118
119
120//-------------------------------------------------
121//  device_reset - device-specific reset
122//-------------------------------------------------
123
124void c64_ps64_cartridge_device::device_reset()
125{
126}
127
128
129//-------------------------------------------------
130//  c64_cd_r - cartridge data read
131//-------------------------------------------------
132
133UINT8 c64_ps64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
134{
135   UINT8 data = 0;
136
137   if (!io1)
138   {
139      //sc02->read(offset & 0x07);
140   }
141
142   return data;
143}
144
145
146//-------------------------------------------------
147//  c64_cd_w - cartridge data write
148//-------------------------------------------------
149
150void c64_ps64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
151{
152   if (!io1)
153   {
154      // sc02->write(offset & 0x07, data);
155   }
156}
src/mess/machine/c64_ps64.h
r0r14943
1/**********************************************************************
2
3    PS-64 speech cartridge emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10#pragma once
11
12#ifndef __PS64__
13#define __PS64__
14
15
16#include "emu.h"
17#include "machine/c64exp.h"
18#include "sound/votrax.h"
19
20
21
22//**************************************************************************
23//  TYPE DEFINITIONS
24//**************************************************************************
25
26// ======================> c64_ç_cartridge_device
27
28class c64_ps64_cartridge_device : public device_t,
29                           public device_c64_expansion_card_interface
30{
31public:
32   // construction/destruction
33   c64_ps64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
34
35   // optional information overrides
36   virtual machine_config_constructor device_mconfig_additions() const;
37
38protected:
39   // device-level overrides
40    virtual void device_config_complete() { m_shortname = "c64_ps64"; }
41   virtual void device_start();
42   virtual void device_reset();
43
44   // device_c64_expansion_card_interface overrides
45   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
46   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
47};
48
49
50// device type definition
51extern const device_type C64_PS64;
52
53
54#endif
src/mess/mess.mak
r14942r14943
810810   $(MESS_MACHINE)/c64_ocean.o   \
811811   $(MESS_MACHINE)/c64_pagefox.o   \
812812   $(MESS_MACHINE)/c64_prophet64.o   \
813   $(MESS_MACHINE)/c64_ps64.o   \
813814   $(MESS_MACHINE)/c64_rex.o   \
814815   $(MESS_MACHINE)/c64_rex_ep256.o   \
815816   $(MESS_MACHINE)/c64_ross.o   \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team