Previous 15994 Revisions Next

r4019 Tuesday 30th December, 2008 at 13:11:40 UTC by Miodrag Milanović
[CBMB][PET] src clean, keylines placed back as static
[src/mess/drivers]cbmb.c pet.c
[src/mess/includes]cbmb.h
[src/mess/machine]cbmb.c pet.c

src/mess/includes/cbmb.h
r4018r4019
11/*****************************************************************************
22 *
33 * includes/cbmb.h
4 *
4 *
55 * Commodore B Series Computer
66 *
77 * peter.trauner@jk.uni-linz.ac.at
8 *
8 *
99 ****************************************************************************/
1010
1111#ifndef CBMB_H_
r4018r4019
2222   int cbmb_keyline_a;
2323   int cbmb_keyline_b;
2424   int cbmb_keyline_c;
25   
25
2626   int p500;
2727   int cbm700;
2828   int cbm_ntsc;
src/mess/machine/cbmb.c
r4018r4019
11/***************************************************************************
2   commodore b series computer
2    commodore b series computer
33
44    peter.trauner@jk.uni-linz.ac.at
55***************************************************************************/
r4018r4019
2020
2121#include "devices/cartslot.h"
2222
23/* 2008-05 FP: Were these added as a reminder to add configs of
23/* 2008-05 FP: Were these added as a reminder to add configs of
2424drivers 8 & 9 as in pet.c ? */
2525#define IEEE8ON 0
2626#define IEEE9ON 0
r4018r4019
3737   } while (0)
3838
3939static TIMER_CALLBACK(cbmb_frame_interrupt);
40/* keyboard lines */
41static int cbmb_keyline_a, cbmb_keyline_b, cbmb_keyline_c;
4042
4143UINT8 *cbmb_basic;
4244UINT8 *cbmb_kernal;
r4018r4019
7577   if (cbm_ieee_eoi_r(device->machine)) data |= 0x20;
7678   if (cbm_ieee_dav_r(device->machine)) data |= 0x10;
7779   if (cbm_ieee_atn_r(device->machine)) data |= 0x08;
78/*   if (cbm_ieee_ren_r(device->machine)) data |= 0x04; */
80/*  if (cbm_ieee_ren_r(device->machine)) data |= 0x04; */
7981
8082   return data;
8183}
r4018r4019
8789   cbm_ieee_eoi_w(device->machine, 0, data & 0x20);
8890   cbm_ieee_dav_w(device->machine, 0, data & 0x10);
8991   cbm_ieee_atn_w(device->machine, 0, data & 0x08);
90/*   cbm_ieee_ren_w(device->machine, 0, data & 0x04); */
92/*  cbm_ieee_ren_w(device->machine, 0, data & 0x04); */
9193   logerror("cbm ieee %d %d\n", data & 0x02, data & 0x01);
9294}
9395
r4018r4019
105107  port a7..a0 b7..b0 keyboard input */
106108WRITE8_DEVICE_HANDLER( cbmb_keyboard_line_select_a )
107109{
108   cbmb_state *state = device->machine->driver_data;
109   state->cbmb_keyline_a = data;
110   cbmb_keyline_a = data;
110111}
111112
112113WRITE8_DEVICE_HANDLER( cbmb_keyboard_line_select_b )
113114{
114   cbmb_state *state = device->machine->driver_data;
115   state->cbmb_keyline_b = data;
115   cbmb_keyline_b = data;
116116}
117117
118118WRITE8_DEVICE_HANDLER( cbmb_keyboard_line_select_c )
119119{
120   cbmb_state *state = device->machine->driver_data;
121   state->cbmb_keyline_c = data;
120   cbmb_keyline_c = data;
122121}
123122
124123READ8_DEVICE_HANDLER( cbmb_keyboard_line_a )
125124{
126125   int data = 0;
127   cbmb_state *state = device->machine->driver_data;   
128   if (!(state->cbmb_keyline_c & 0x01))
126   if (!(cbmb_keyline_c & 0x01))
129127      data |= input_port_read(device->machine, "ROW0");
130128
131   if (!(state->cbmb_keyline_c & 0x02))
129   if (!(cbmb_keyline_c & 0x02))
132130      data |= input_port_read(device->machine, "ROW2");
133131
134   if (!(state->cbmb_keyline_c & 0x04))
132   if (!(cbmb_keyline_c & 0x04))
135133      data |= input_port_read(device->machine, "ROW4");
136134
137   if (!(state->cbmb_keyline_c & 0x08))
135   if (!(cbmb_keyline_c & 0x08))
138136      data |= input_port_read(device->machine, "ROW6");
139137
140   if (!(state->cbmb_keyline_c & 0x10))
138   if (!(cbmb_keyline_c & 0x10))
141139      data |= input_port_read(device->machine, "ROW8");
142140
143   if (!(state->cbmb_keyline_c & 0x20))
141   if (!(cbmb_keyline_c & 0x20))
144142      data |= input_port_read(device->machine, "ROW10");
145143
146144   return data ^0xff;
r4018r4019
149147READ8_DEVICE_HANDLER( cbmb_keyboard_line_b )
150148{
151149   int data = 0;
152   cbmb_state *state = device->machine->driver_data;   
153   if (!(state->cbmb_keyline_c & 0x01))
150   if (!(cbmb_keyline_c & 0x01))
154151      data |= input_port_read(device->machine, "ROW1");
155152
156   if (!(state->cbmb_keyline_c & 0x02))
153   if (!(cbmb_keyline_c & 0x02))
157154      data |= input_port_read(device->machine, "ROW3");
158155
159   if (!(state->cbmb_keyline_c & 0x04))
156   if (!(cbmb_keyline_c & 0x04))
160157      data |= input_port_read(device->machine, "ROW5");
161158
162   if (!(state->cbmb_keyline_c & 0x08))
159   if (!(cbmb_keyline_c & 0x08))
163160      data |= input_port_read(device->machine, "ROW7");
164161
165   if (!(state->cbmb_keyline_c & 0x10))
162   if (!(cbmb_keyline_c & 0x10))
166163      data |= input_port_read(device->machine, "ROW9") | ((input_port_read(device->machine, "SPECIAL") & 0x04) ? 1 : 0 );
167164
168   if (!(state->cbmb_keyline_c & 0x20))
165   if (!(cbmb_keyline_c & 0x20))
169166      data |= input_port_read(device->machine, "ROW11");
170167
171168   return data ^0xff;
r4018r4019
174171READ8_DEVICE_HANDLER( cbmb_keyboard_line_c )
175172{
176173   int data = 0;
177   cbmb_state *state = device->machine->driver_data;   
178   if ((input_port_read(device->machine, "ROW0") & ~state->cbmb_keyline_a) ||
179            (input_port_read(device->machine, "ROW1") & ~state->cbmb_keyline_b))
174   cbmb_state *state = device->machine->driver_data;
175   if ((input_port_read(device->machine, "ROW0") & ~cbmb_keyline_a) ||
176            (input_port_read(device->machine, "ROW1") & ~cbmb_keyline_b))
180177       data |= 0x01;
181178
182   if ((input_port_read(device->machine, "ROW2") & ~state->cbmb_keyline_a) ||
183            (input_port_read(device->machine, "ROW3") & ~state->cbmb_keyline_b))
179   if ((input_port_read(device->machine, "ROW2") & ~cbmb_keyline_a) ||
180            (input_port_read(device->machine, "ROW3") & ~cbmb_keyline_b))
184181       data |= 0x02;
185182
186   if ((input_port_read(device->machine, "ROW4") & ~state->cbmb_keyline_a) ||
187            (input_port_read(device->machine, "ROW5") & ~state->cbmb_keyline_b))
183   if ((input_port_read(device->machine, "ROW4") & ~cbmb_keyline_a) ||
184            (input_port_read(device->machine, "ROW5") & ~cbmb_keyline_b))
188185       data |= 0x04;
189186
190   if ((input_port_read(device->machine, "ROW6") & ~state->cbmb_keyline_a) ||
191            (input_port_read(device->machine, "ROW7") & ~state->cbmb_keyline_b))
187   if ((input_port_read(device->machine, "ROW6") & ~cbmb_keyline_a) ||
188            (input_port_read(device->machine, "ROW7") & ~cbmb_keyline_b))
192189       data |= 0x08;
193190
194   if ((input_port_read(device->machine, "ROW8") & ~state->cbmb_keyline_a) ||
195            ((input_port_read(device->machine, "ROW9") | ((input_port_read(device->machine, "SPECIAL") & 0x04) ? 1 : 0)) & ~state->cbmb_keyline_b))
191   if ((input_port_read(device->machine, "ROW8") & ~cbmb_keyline_a) ||
192            ((input_port_read(device->machine, "ROW9") | ((input_port_read(device->machine, "SPECIAL") & 0x04) ? 1 : 0)) & ~cbmb_keyline_b))
196193       data |= 0x10;
197194
198   if ((input_port_read(device->machine, "ROW10") & ~state->cbmb_keyline_a) ||
199            (input_port_read(device->machine, "ROW11") & ~state->cbmb_keyline_b))
195   if ((input_port_read(device->machine, "ROW10") & ~cbmb_keyline_a) ||
196            (input_port_read(device->machine, "ROW11") & ~cbmb_keyline_b))
200197       data |= 0x20;
201198
202   if (!state->p500)
199   if (!state->p500)
203200   {
204      if (!state->cbm_ntsc)
201      if (!state->cbm_ntsc)
205202         data |= 0x40;
206203
207      if (!state->cbm700)
204      if (!state->cbm700)
208205         data |= 0x80;
209206   }
210207   return data ^0xff;
r4018r4019
298295DRIVER_INIT( cbm600 )
299296{
300297   cbmb_state *state = machine->driver_data;
301   cbmb_common_driver_init(machine);   
298   cbmb_common_driver_init(machine);
302299   state->cbm_ntsc = 1;
303300   cbm600_vh_init(machine);
304301}
r4018r4019
349346{
350347   static int level = 0;
351348   const device_config *tpi_0 = devtag_get_device(machine, TPI6525, "tpi6525_0");
352   
349
353350#if 0
354351   int controller1 = input_port_read(machine, "CTRLSEL") & 0x07;
355352   int controller2 = input_port_read(machine, "CTRLSEL") & 0x70;
r4018r4019
366363      case 0x00:
367364         value &= ~input_port_read(machine, "JOY1_1B");         /* Joy1 Directions + Button 1 */
368365         break;
369     
366
370367      case 0x01:
371368         if (input_port_read(machine, "OTHER") & 0x40)         /* Paddle2 Button */
372369            value &= ~0x08;
r4018r4019
380377         if (input_port_read(machine, "OTHER") & 0x01)         /* Mouse Button Right */
381378            value &= ~0x01;
382379         break;
383         
380
384381      case 0x03:
385382         value &= ~(input_port_read(machine, "JOY1_2B") & 0x1f);   /* Joy1 Directions + Button 1 */
386383         break;
387     
384
388385      case 0x04:
389386/* was there any input on the lightpen? where is it mapped? */
390//         if (input_port_read(machine, "OTHER") & 0x04)         /* Lightpen Signal */
391//            value &= ?? ;
387//          if (input_port_read(machine, "OTHER") & 0x04)           /* Lightpen Signal */
388//              value &= ?? ;
392389         break;
393390
394391      case 0x07:
r4018r4019
408405      case 0x00:
409406         value &= ~input_port_read(machine, "JOY2_1B");         /* Joy2 Directions + Button 1 */
410407         break;
411     
408
412409      case 0x10:
413410         if (input_port_read(machine, "OTHER") & 0x10)         /* Paddle4 Button */
414411            value &= ~0x08;
r4018r4019
422419         if (input_port_read(machine, "OTHER") & 0x01)         /* Mouse Button Right */
423420            value &= ~0x01;
424421         break;
425     
422
426423      case 0x30:
427424         value &= ~(input_port_read(machine, "JOY2_2B") & 0x1f);   /* Joy2 Directions + Button 1 */
428425         break;
429426
430427      case 0x40:
431428/* was there any input on the lightpen? where is it mapped? */
432//         if (input_port_read(machine, "OTHER") & 0x04)         /* Lightpen Signal */
433//            value &= ?? ;
429//          if (input_port_read(machine, "OTHER") & 0x04)           /* Lightpen Signal */
430//              value &= ?? ;
434431         break;
435432
436433      case 0x70:
r4018r4019
445442#endif
446443
447444// 128u4 FIXME
448//   vic2_frame_interrupt (device);
445//  vic2_frame_interrupt (device);
449446
450447   set_led_status (1, input_port_read(machine, "SPECIAL") & 0x04 ? 1 : 0);      /* Shift Lock */
451448}
r4018r4019
453450
454451/***********************************************
455452
456   CBM Business Computers Cartridges
453    CBM Business Computers Cartridges
457454
458455***********************************************/
459456
r4018r4019
470467
471468    if (!mame_stricmp (filetype, "crt"))
472469   {
473   /* We temporarily remove .crt loading. Previous versions directly used
474   the same routines used to load C64 .crt file, but I seriously doubt the
475   formats are compatible. While waiting for confirmation about .crt dumps
476   for CBMB machines, we simply do not load .crt files */
470   /* We temporarily remove .crt loading. Previous versions directly used
471    the same routines used to load C64 .crt file, but I seriously doubt the
472    formats are compatible. While waiting for confirmation about .crt dumps
473    for CBMB machines, we simply do not load .crt files */
477474   }
478   else
475   else
479476   {
480477      /* Assign loading address according to extension */
481478      if (!mame_stricmp (filetype, "10"))
r4018r4019
505502      if (test != cbmb_cbm_cart[0].size)
506503         return INIT_FAIL;
507504   }
508           
505
509506   /* Finally load the cart */
510//   This could be needed with .crt support
511//   for (i = 0; (i < sizeof(pet_cbm_cart) / sizeof(pet_cbm_cart[0])) && (pet_cbm_cart[i].size != 0); i++)
512//      memcpy(cbmb_memory + cbmb_cbm_cart[i].addr + 0xf0000, cbmb_cbm_cart[i].chip, cbmb_cbm_cart[i].size);
507//  This could be needed with .crt support
508//  for (i = 0; (i < sizeof(pet_cbm_cart) / sizeof(pet_cbm_cart[0])) && (pet_cbm_cart[i].size != 0); i++)
509//      memcpy(cbmb_memory + cbmb_cbm_cart[i].addr + 0xf0000, cbmb_cbm_cart[i].chip, cbmb_cbm_cart[i].size);
513510   memcpy(cbmb_memory + cbmb_cbm_cart[0].addr + 0xf0000, cbmb_cbm_cart[0].chip, cbmb_cbm_cart[0].size);
514511
515512   return INIT_PASS;
src/mess/machine/pet.c
r4018r4019
11/***************************************************************************
2   commodore pet series computer
2    commodore pet series computer
33
44    peter.trauner@jk.uni-linz.ac.at
55***************************************************************************/
r4018r4019
3636UINT8 *superpet_memory;
3737UINT8 *pet_videoram;
3838static UINT8 *pet80_bank1_base;
39static int pet_keyline_select;   
39static int pet_keyline_select;
4040
4141static emu_timer *datasette1_timer;
4242static emu_timer *datasette2_timer;
r4018r4019
7575  cb2 cassette 1 motor out
7676*/
7777static READ8_HANDLER ( pet_pia0_port_a_read )
78{   
78{
7979   int data = 0xf0 | pet_keyline_select;
8080
8181   if ((cassette_get_state(device_list_find_by_tag( space->machine->config->devicelist, CASSETTE, "cassette1" )) & CASSETTE_MASK_UISTATE) != CASSETTE_STOPPED)
r4018r4019
8484   if ((cassette_get_state(device_list_find_by_tag( space->machine->config->devicelist, CASSETTE, "cassette2" )) & CASSETTE_MASK_UISTATE) != CASSETTE_STOPPED)
8585      data &= ~0x20;
8686
87   if (!cbm_ieee_eoi_r(space->machine))
87   if (!cbm_ieee_eoi_r(space->machine))
8888      data &= ~0x40;
8989
9090   return data;
r4018r4019
9999static  READ8_HANDLER ( pet_pia0_port_b_read )
100100{
101101   UINT8 data = 0xff;
102   static const char *const keynames[] = { "ROW0", "ROW1", "ROW2", "ROW3", "ROW4",
102   static const char *const keynames[] = { "ROW0", "ROW1", "ROW2", "ROW3", "ROW4",
103103                              "ROW5", "ROW6", "ROW7", "ROW8", "ROW9" };
104   
105   if (pet_keyline_select < 10)
104
105   if (pet_keyline_select < 10)
106106   {
107107      data = input_port_read(space->machine, keynames[pet_keyline_select]);
108108      /* Check for left-shift lock */
109      if ((pet_keyline_select == 8) && (input_port_read(space->machine, "SPECIAL") & 0x80))
109      if ((pet_keyline_select == 8) && (input_port_read(space->machine, "SPECIAL") & 0x80))
110110         data &= 0xfe;
111111   }
112112   return data;
r4018r4019
117117{
118118   UINT8 data = 0xff;
119119   pet_state *state = space->machine->driver_data;
120   static const char *const keynames[] = { "ROW0", "ROW1", "ROW2", "ROW3", "ROW4",
120   static const char *const keynames[] = { "ROW0", "ROW1", "ROW2", "ROW3", "ROW4",
121121                              "ROW5", "ROW6", "ROW7", "ROW8", "ROW9" };
122   
123   if (pet_keyline_select < 10)
122
123   if (pet_keyline_select < 10)
124124   {
125125      data = input_port_read(space->machine, keynames[pet_keyline_select]);
126126      /* Check for left-shift lock */
r4018r4019
128128      /* While waiting for confirmation from docs, we add a workaround here. */
129129      if (state->superpet)
130130      {
131         if ((pet_keyline_select == 6) && !(input_port_read(space->machine, "SPECIAL") & 0x80))
131         if ((pet_keyline_select == 6) && !(input_port_read(space->machine, "SPECIAL") & 0x80))
132132            data &= 0xfe;
133      }     
133      }
134134      else
135135      {
136         if ((pet_keyline_select == 6) && (input_port_read(space->machine, "SPECIAL") & 0x80))
136         if ((pet_keyline_select == 6) && (input_port_read(space->machine, "SPECIAL") & 0x80))
137137            data &= 0xfe;
138138      }
139139   }
r4018r4019
297297
298298   if (cbm_ieee_ndac_r(device->machine)) data |= 0x01;
299299
300   //   data & 0x08 -> cassette write (it seems to BOTH cassettes from schematics)
300   //  data & 0x08 -> cassette write (it seems to BOTH cassettes from schematics)
301301
302302   if (!(data & 0x10))
303303   {
r4018r4019
443443      memory_install_write8_handler(space, 0xb000, 0xbfff, 0, 0, (data & 1) == 0 ? SMH_BANK4 : SMH_NOP);
444444
445445
446      if (data & 4)
446      if (data & 4)
447447      {
448         if (!(data & 0x20))
448         if (!(data & 0x20))
449449         {
450450            pet80_bank1_base = pet_memory + 0x14000;
451451            memory_set_bankptr (space->machine, 1, pet80_bank1_base);
r4018r4019
453453         memory_set_bankptr (space->machine, 2, pet_memory + 0x15000);
454454         memory_set_bankptr (space->machine, 3, pet_memory + 0x16000);
455455         memory_set_bankptr (space->machine, 4, pet_memory + 0x17000);
456      }
457      else
456      }
457      else
458458      {
459         if (!(data & 0x20))
459         if (!(data & 0x20))
460460         {
461461            pet80_bank1_base = pet_memory + 0x10000;
462462            memory_set_bankptr (space->machine, 1, pet80_bank1_base);
r4018r4019
466466         memory_set_bankptr (space->machine, 4, pet_memory + 0x13000);
467467      }
468468
469      if (data & 8)
469      if (data & 8)
470470      {
471         if (!(data & 0x40))
471         if (!(data & 0x40))
472472         {
473473            memory_set_bankptr (space->machine, 7, pet_memory + 0x1e800);
474474         }
475475         memory_set_bankptr (space->machine, 6, pet_memory + 0x1c000);
476476         memory_set_bankptr (space->machine, 8, pet_memory + 0x1f000);
477477         memory_set_bankptr (space->machine, 9, pet_memory + 0x1fff1);
478      }
479      else
478      }
479      else
480480      {
481         if (!(data & 0x40))
481         if (!(data & 0x40))
482482         {
483483            memory_set_bankptr (space->machine, 7, pet_memory+ 0x1a800);
484484         }
r4018r4019
530530      case 2:
531531      case 3:
532532         /* 3: 1 pull down diagnostic pin on the userport
533            1: 1 if jumpered programable ram r/w
534            0: 0 if jumpered programable m6809, 1 m6502 selected */
533               1: 1 if jumpered programable ram r/w
534               0: 0 if jumpered programable m6809, 1 m6502 selected */
535535         break;
536536
537537      case 4:
r4018r4019
561561/* NOT WORKING - Just placeholder */
562562static TIMER_CALLBACK( pet_tape1_timer )
563563{
564//   cassette 1
564//  cassette 1
565565   UINT8 data = (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette1" )) > +0.0) ? 1 : 0;
566566   pia_0_ca1_w(cputag_get_address_space(machine,"main",ADDRESS_SPACE_PROGRAM), 0, data);
567567}
r4018r4019
570570static TIMER_CALLBACK( pet_tape2_timer )
571571{
572572   const device_config *via_0 = device_list_find_by_tag(machine->config->devicelist, VIA6522, "via6522_0");
573//   cassette 2
573//  cassette 2
574574   UINT8 data = (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette2" )) > +0.0) ? 1 : 0;
575575   via_cb1_w(via_0, 0, data);
576576}
r4018r4019
581581   int i;
582582   pet_state *state = machine->driver_data;
583583
584   state->pet_basic1 = 0;
584   state->pet_basic1 = 0;
585585   state->superpet = 0;
586586   state->cbm8096 = 0;
587   
587
588588   /* BIG HACK; need to phase out this retarded memory management */
589589   if (!pet_memory)
590590      pet_memory = mess_ram;
r4018r4019
650650
651651DRIVER_INIT( pet80 )
652652{
653   
653
654654   pet_state *state = machine->driver_data;
655655   pet_memory = memory_region(machine, "main");
656656
657657   pet_common_driver_init(machine);
658   state->cbm8096 = 1;   
658   state->cbm8096 = 1;
659659   pia_config(machine, 0, &petb_pia0);
660660   videoram = &pet_memory[0x8000];
661661   videoram_size = 0x800;
662662   pet80_vh_init(machine);
663   
663
664664}
665665
666666DRIVER_INIT( superpet )
667667{
668   
668
669669   pet_state *state = machine->driver_data;
670670   pet_common_driver_init(machine);
671671   state->superpet = 1;
r4018r4019
683683{
684684   pet_state *state = machine->driver_data;
685685   pia_reset();
686   
686
687687   if (state->superpet)
688688   {
689689      spet.rom = 0;
r4018r4019
725725   pet_state *state = device->machine->driver_data;
726726   if (state->superpet)
727727   {
728      if (input_port_read(device->machine, "CFG") & 0x04)
728      if (input_port_read(device->machine, "CFG") & 0x04)
729729      {
730730         cpu_set_input_line(device, INPUT_LINE_HALT, 1);
731731         cpu_set_input_line(device, INPUT_LINE_HALT, 0);
732732         pet_font |= 2;
733      }
734      else
733      }
734      else
735735      {
736736         cpu_set_input_line(device, INPUT_LINE_HALT, 0);
737737         cpu_set_input_line(device, INPUT_LINE_HALT, 1);
r4018r4019
745745
746746/***********************************************
747747
748   PET Cartridges
748    PET Cartridges
749749
750750***********************************************/
751751
r4018r4019
763763
764764    if (!mame_stricmp (filetype, "crt"))
765765   {
766   /* We temporarily remove .crt loading. Previous versions directly used
767   the same routines used to load C64 .crt file, but I seriously doubt the
768   formats are compatible. While waiting for confirmation about .crt dumps
769   for PET machines, we simply do not load .crt files */
766   /* We temporarily remove .crt loading. Previous versions directly used
767    the same routines used to load C64 .crt file, but I seriously doubt the
768    formats are compatible. While waiting for confirmation about .crt dumps
769    for PET machines, we simply do not load .crt files */
770770   }
771   else
771   else
772772   {
773773      /* Assign loading address according to extension */
774774      if (!mame_stricmp (filetype, "a0"))
r4018r4019
794794   }
795795
796796   /* Finally load the cart */
797//   This could be needed with .crt support
798//   for (i = 0; (i < sizeof(pet_cbm_cart) / sizeof(pet_cbm_cart[0])) && (pet_cbm_cart[i].size != 0); i++)
799//      memcpy(pet_memory + pet_cbm_cart[i].addr, pet_cbm_cart[i].chip, pet_cbm_cart[i].size);
797//  This could be needed with .crt support
798//  for (i = 0; (i < sizeof(pet_cbm_cart) / sizeof(pet_cbm_cart[0])) && (pet_cbm_cart[i].size != 0); i++)
799//      memcpy(pet_memory + pet_cbm_cart[i].addr, pet_cbm_cart[i].chip, pet_cbm_cart[i].size);
800800   memcpy(pet_memory + pet_cbm_cart[0].addr, pet_cbm_cart[0].chip, pet_cbm_cart[0].size);
801801
802802   return INIT_PASS;
src/mess/drivers/cbmb.c
r4018r4019
1010
1111/*
1212
132008 - Driver Updates
132008 - Driver Updates
1414---------------------
1515
1616(most of the informations are taken from http://www.zimmers.net/cbmpics/ )
r4018r4019
2727
2828  Various models:
2929
30U.S. name         EU name      RAM
30U.S. name           EU name     RAM
3131
32B500 (*)         -         128k
33B128            CBM 610      128k
34B256            CBM 620      256k
35B128-80HP (**)      CBM 710      128k
36B256-80HP (**)      CBM 720      256k
37BX256-80HP (***)   CBM 730      256k
32B500 (*)            -           128k
33B128                CBM 610     128k
34B256                CBM 620     256k
35B128-80HP (**)      CBM 710     128k
36B256-80HP (**)      CBM 720     256k
37BX256-80HP (***)    CBM 730     256k
3838
3939(*) Prototype for the B128? As you can read at http://www.zimmers.net/cbmpics/cb500.html
40   the naming of these machines is not clear: either they were B500/128 &
41   B500/256 or B128 & B256. However, these names always refer to the low
42   profile models.
40    the naming of these machines is not clear: either they were B500/128 &
41    B500/256 or B128 & B256. However, these names always refer to the low
42    profile models.
4343(**) HP stands for High Profile. The other systems were the low profile models.
44   HP machines had a detachable keyboard
44    HP machines had a detachable keyboard
4545(***) Additional 8088 CPU present
4646
4747CPU: MOS 6509 (2 MHz)
r4018r4019
5050Video: MOS 6545 CTRC (Text: 80 columns, 25 rows)
5151Sound: MOS 6581 SID (3 voice stereo synthesizer/digital sound capabilities)
5252Ports: CSG 6551/6525x2/6526 (IEEE-488 port; CBM Datasette port; RS232 port;
53   CBM Monitor port; CBM-II/PET-II expansion port; 1 RCA audio port; Power
54   and reset switches
55Keyboard: Full-sized 102 key QWERTY (19 key numeric keypad!; 4 direction
56   cursor-pad)
53    CBM Monitor port; CBM-II/PET-II expansion port; 1 RCA audio port; Power
54    and reset switches
55Keyboard: Full-sized 102 key QWERTY (19 key numeric keypad!; 4 direction
56    cursor-pad)
5757
5858
5959* Commodore PET-II Series (1983)
6060
61  This series only features the P500 machine, which never even reached the
62market. In this machine, the Datasette port can be used (the BASIC ROMs
61  This series only features the P500 machine, which never even reached the
62market. In this machine, the Datasette port can be used (the BASIC ROMs
6363contain the necessary routines). It is also probably know as C128-40.
64 
64
6565CPU: CSG 6509 (1 MHz)
6666RAM: 128 kilobytes, expandable to 720k
6767ROM: 24 kilobytes
68Video: CSG 6569 "VIC-II" (320 x 200 Hi-Resolution; 40 columns text; Palette
69   of 16 colors)
68Video: CSG 6569 "VIC-II" (320 x 200 Hi-Resolution; 40 columns text; Palette
69    of 16 colors)
7070Sound: CSG 6581 "SID" (3 voice stereo synthesizer/digital sound capabilities)
71Ports: CSG 6551/6522 (2 Joystick/Mouse ports; IEEE-488 port; CBM Datasette
72   port; RS232 port; CBM Monitor port; CBM-II/PET-II expansion port; 1 RCA
73   audio port; Power and reset switches)
74Keyboard: Full-sized 102 key QWERTY (19 key numeric keypad!; 4 direction
75   cursor-pad)
71Ports: CSG 6551/6522 (2 Joystick/Mouse ports; IEEE-488 port; CBM Datasette
72    port; RS232 port; CBM Monitor port; CBM-II/PET-II expansion port; 1 RCA
73    audio port; Power and reset switches)
74Keyboard: Full-sized 102 key QWERTY (19 key numeric keypad!; 4 direction
75    cursor-pad)
7676
7777[To Do]
7878
79* Support is still missing for: Sound, IEEE488, Floppy, internal slots
79* Support is still missing for: Sound, IEEE488, Floppy, internal slots
8080
8181* Emulate 8088 co-processor for BX-256HP and eventually add its European
82   counterpart CBM 730
82    counterpart CBM 730
8383
84* Add better P500 emulation (almost everything: memory access, inputs,
85   Datasette, etc.)
84* Add better P500 emulation (almost everything: memory access, inputs,
85    Datasette, etc.)
8686
8787* Was CBM 710 / 720 monitor at 50Hz? If not remove MACHINE_DRIVER_START(cbm700pal)
88   and use the 60Hz version for the whole High Profile
88    and use the 60Hz version for the whole High Profile
8989
9090* Find info about the following models (if ever existed):
91   + BX128-80HP
92   + CBM 700
93   + CBM 505, CBM 510 (these seems proto as CBM 500 but with less RAM, 64
94      & 128)
91    + BX128-80HP
92    + CBM 700
93    + CBM 505, CBM 510 (these seems proto as CBM 500 but with less RAM, 64
94        & 128)
9595*/
9696
9797
r4018r4019
225225   PORT_INCLUDE( cbmb_keyboard )         /* ROW0 -> ROW11 */
226226
227227   PORT_INCLUDE( cbmb_special )         /* SPECIAL */
228   
228
229229   PORT_INCLUDE( c64_controls )         /* CTRLSEL, JOY0, JOY1, PADDLE0 -> PADDLE3, TRACKX, TRACKY, LIGHTX, LIGHTY, OTHER */
230230INPUT_PORTS_END
231231
r4018r4019
337337};
338338
339339static const mc6845_interface cbm700_crtc = {
340   "main",   
340   "main",
341341   9 /*?*/,
342342   NULL,
343343   cbm700_update_row,
r4018r4019
415415
416416   /* cia */
417417   MDRV_CIA6526_ADD("cia", CIA6526R1, 0, cbmb_cia)
418   
418
419419   /* tpi */
420420   MDRV_TPI6525_ADD("tpi6525_0", cbmb_tpi_0_intf)
421421   MDRV_TPI6525_ADD("tpi6525_1", cbmb_tpi_1_intf)
r4018r4019
455455static MACHINE_DRIVER_START( bx256hp )
456456   MDRV_IMPORT_FROM( cbm700 )
457457
458//   MDRV_CPU_ADD("8088", I8088, /* ? */)
458//  MDRV_CPU_ADD("8088", I8088, /* ? */)
459459MACHINE_DRIVER_END
460460
461461
462462static MACHINE_DRIVER_START( p500 )
463   MDRV_DRIVER_DATA(cbmb_state)   
463   MDRV_DRIVER_DATA(cbmb_state)
464464   /* basic machine hardware */
465465   MDRV_CPU_ADD("main", M6509, VIC6567_CLOCK)        /* 7.8336 MHz */
466466   MDRV_CPU_PROGRAM_MAP(p500_readmem, p500_writemem)
src/mess/drivers/pet.c
r4018r4019
1212
1313/*
1414
152008 - Driver Updates
152008 - Driver Updates
1616---------------------
1717
1818(most of the informations are taken from http://www.zimmers.net/cbmpics/ )
19(also, check
20   http://www.6502.org/users/andre/petindex/local/cbm-model-list.1.0.txt
19(also, check
20    http://www.6502.org/users/andre/petindex/local/cbm-model-list.1.0.txt
2121for a more comprehensive list of models)
2222
2323[CBM systems which belong to this driver]
r4018r4019
2525* Commodore PET 2001 (1977) - board design 1
2626* PET 2001 Series / CBM 20XX Series (1979) - board design 2, upgraded ROMs
2727
28  PET 2001, the first of the series came initially with a calculator style
28  PET 2001, the first of the series came initially with a calculator style
2929keyboard, later changed to a larger and better full-stroke one (actually
3030it was available in two versions: Businness and Home Computer, the latter
31also containing graphics on the keys). Plenty of models were released in
31also containing graphics on the keys). Plenty of models were released in
3232this series, depending on the RAM size, the keyboard type and the screen
3333dimension (see below).
3434
3535CPU: MOS 6502 (1 MHz)
3636RAM: 4K and 8K early models (Expandable to 32k addressable, more banked);
37   8K, 16K, 32K later models (Expandable again to larger RAM config)
37    8K, 16K, 32K later models (Expandable again to larger RAM config)
3838ROM: 18 kilobytes early models; 20 kilobytes later ones
39Video: MOS Technology 6545 CRTC (9" Monochrome display; 40 columns x 25
40   rows )
41Sound: None ine arlier models; Piezo electronic speaker later ones(One
42   square wave voice; Three octaves)
43Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2
44   Commodore Datasette ports; 'EXPANSION' port; CBM parallel
45   programmable "User" port
39Video: MOS Technology 6545 CRTC (9" Monochrome display; 40 columns x 25
40    rows )
41Sound: None ine arlier models; Piezo electronic speaker later ones(One
42    square wave voice; Three octaves)
43Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2
44    Commodore Datasette ports; 'EXPANSION' port; CBM parallel
45    programmable "User" port
4646Keyboard: "Calculator" 69 key QWERTY in early models and Full 69 keys QWERTY
47   in later ones (16 key numeric keypad!; 4 direction 2-key cursor-pad )
47    in later ones (16 key numeric keypad!; 4 direction 2-key cursor-pad )
4848Additional hardware: Datasette
4949
5050Model Table (*):
5151
52PET 2001-4K      Calculator Keyboard, Black Trim
53PET 2001-8K      Calculator Keyboard, Blue Trim, 9" Screen
54PET 2001-8C      Calculator Keyboard, Blue Trim, 9" Screen B&W (**)
55PET 2001B-8      Business Keyboard, 12" Screen
56PET 2001B-16   Business Keyboard, 12" Screen
57PET 2001B-32   Business Keyboard, 12" Screen (***)
58PET 2001N-8      Home Computer Keyboard, 12" Screen
59PET 2001N-16   Home Computer Keyboard, 9" and 12" Screen
60PET 2001N-32   Home Computer Keyboard, BASIC 4.0
52PET 2001-4K     Calculator Keyboard, Black Trim
53PET 2001-8K     Calculator Keyboard, Blue Trim, 9" Screen
54PET 2001-8C     Calculator Keyboard, Blue Trim, 9" Screen B&W (**)
55PET 2001B-8     Business Keyboard, 12" Screen
56PET 2001B-16    Business Keyboard, 12" Screen
57PET 2001B-32    Business Keyboard, 12" Screen (***)
58PET 2001N-8     Home Computer Keyboard, 12" Screen
59PET 2001N-16    Home Computer Keyboard, 9" and 12" Screen
60PET 2001N-32    Home Computer Keyboard, BASIC 4.0
6161
62Notes:   B&W = Black and White Screen
63      G&W = Green and White Screen
64      Calculator Keyboard models also had a built-in datasette
65      Home Computer Keyboard also features graphics on keys
62Notes:  B&W = Black and White Screen
63        G&W = Green and White Screen
64        Calculator Keyboard models also had a built-in datasette
65        Home Computer Keyboard also features graphics on keys
6666
67(*) Models 2001B-XX & 2001-XXB are the same. Same applies to 2001N-XX &
68   2001-XXN
69(**) Also confirmed with Black Trim and 9" Screen G&W
70(***) Also confirmed with Black Trim and 9" Screen B&W
67(*) Models 2001B-XX & 2001-XXB are the same. Same applies to 2001N-XX &
68    2001-XXN
69(**) Also confirmed with Black Trim and 9" Screen G&W
70(***) Also confirmed with Black Trim and 9" Screen B&W
7171
7272
7373* Commodore CBM 3008 / 3016 / 3032 (1979) - board design 2, upgraded ROMs
7474
75  In Europe, Philips was already selling a machine called PET, so they
76forced Commodore to change name. The result was the CBM 30XX Series, where
77XX is equal to the RAM size. These were basically PET models with 9" Screen
78and upgraded ROMs. There also existed a German CBM 3001, which was a PET
792001, B or N. Notice that these systems used to boot
75  In Europe, Philips was already selling a machine called PET, so they
76forced Commodore to change name. The result was the CBM 30XX Series, where
77XX is equal to the RAM size. These were basically PET models with 9" Screen
78and upgraded ROMs. There also existed a German CBM 3001, which was a PET
792001, B or N. Notice that these systems used to boot
8080
8181CPU: MOS 6502 (1MHz)
8282RAM: 8K, 16k, and 32k models (Expandable to even more banked memory)
8383ROM: 20 Kilobytes
8484Video: MOS Technology 6545 CRTC (9" Monochrome display; 40 columns x 25 rows)
8585Sound: Piezo electronic speaker (One square wave voice; Three octaves)
86Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2 Commodore
87   Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
88Keyboard: Full 69 key QWERTY (16 key numeric keypad!; 4 direction 2-key cursor-pad)
86Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2 Commodore
87    Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
88Keyboard: Full 69 key QWERTY (16 key numeric keypad!; 4 direction 2-key cursor-pad)
8989
9090
9191* Commodore PET 40XX / CBM 40XX (1980) - board design 2, BASIC 4, 9" Screen
r4018r4019
9999CPU: MOS 6502 (1 MHz)
100100RAM: 8K, 16k, and 32k models (Expandable to even more banked memory)
101101ROM: 20 Kilobytes
102Video: MOS Technology 6545 CRTC (9" and 12" Monochrome displays; 40
103   columns x 25 rows)
102Video: MOS Technology 6545 CRTC (9" and 12" Monochrome displays; 40
103    columns x 25 rows)
104104Sound: Piezo electronic speaker (One square wave voice; Three octaves)
105Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2 Commodore
106   Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
105Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2 Commodore
106    Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
107107Keyboard: Full 69 key QWERTY (16 key numeric keypad!; 4 direction 2-key cursor-pad)
108108
109109
110110* Commodore PET 8032 / CBM 8032 (1981) - board design 3, BASIC 4, 12" Screen
111111
112  Again, 80 columns screen and piezo beeper; BASIC 4 has a 80 columns editor
112  Again, 80 columns screen and piezo beeper; BASIC 4 has a 80 columns editor
113113ROM. It was possible to expand it to a 8096.
114114
115115CPU: MOS 6502 (1 MHz)
r4018r4019
117117ROM: 20 Kilobytes
118118Video: MOS Technology 6545 CRTC (12" Monochrome displays; 80 columns x 25 rows)
119119Sound: Piezo electronic speaker (One square wave voice; Three octaves)
120Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2 Commodore
121   Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
120Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2 Commodore
121    Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
122122Keyboard: Full 73 key QWERTY (11 key numeric keypad!; 4 direction 2-key cursor-pad)
123123
124124
r4018r4019
133133ROM: 20 Kilobytes
134134Video: MOS Technology 6545 CRTC (12" Monochrome display; 80 columns x 25 rows)
135135Sound: Piezo electronic speaker (One square wave voice; Three octaves)
136Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 square-connector Port; 2 Commodore
137   Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
138Keyboard: Full 73 key QWERTY (11 key numeric keypad!; 4 direction 2-key cursor-pad)
136Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 square-connector Port; 2 Commodore
137    Datasette ports; 'EXPANSION' port; CBM parallel programmable "User" port)
138Keyboard: Full 73 key QWERTY (11 key numeric keypad!; 4 direction 2-key cursor-pad)
139139
140140
141141* Commodore CBM 200 Series (198?)
r4018r4019
146146
147147* Commodore Super PET / MMF9000 (1981) - BASIC 4, 12" Screen
148148
149  Based on PET 8032. Sold in Germany as MMF (MicroMainFrame) 9000. Machines
149  Based on PET 8032. Sold in Germany as MMF (MicroMainFrame) 9000. Machines
150150sold in Italy had 134kB of RAM.
151151
152152CPU: MOS Technology 6502 & 6809 (1 MHz clock speeds)
153153RAM: 96 kilobytes (64K was contained on an expansion board above the motherboard;
154   Early SP9000 models had two boards above the motherboard; Some models also
155   had 3 or more switches)
154    Early SP9000 models had two boards above the motherboard; Some models also
155    had 3 or more switches)
156156ROM: 48 kilobytes
157Video: MOS Technology 6545 CRTC (12" Monochrome display; 80 columns x 25 rows;
158   3+ character sets, 256 characters each)
157Video: MOS Technology 6545 CRTC (12" Monochrome display; 80 columns x 25 rows;
158    3+ character sets, 256 characters each)
159159Sound: Piezo electronic speaker (One square wave voice; Three octaves)
160Ports: 6551 ACIA, MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2
161   Commodore Datasette ports; 'EXPANSION' port; RS232 Internal port; CBM
162   parallel programmable "User" port; Memory and Processor selection switches)
163Keyboard: Full-sized 73 key QWERTY (Multi-Font 62 key keyboard; APL Symbols on
164   the front of the keys; 11 key numeric keypad; Editor functions on the front
165   of the keys; 2-key 4-direction cursor-pad)
160Ports: 6551 ACIA, MOS 6520 PIA, MOS 6522 VIA (IEEE-488 edge-connector Port; 2
161    Commodore Datasette ports; 'EXPANSION' port; RS232 Internal port; CBM
162    parallel programmable "User" port; Memory and Processor selection switches)
163Keyboard: Full-sized 73 key QWERTY (Multi-Font 62 key keyboard; APL Symbols on
164    the front of the keys; 11 key numeric keypad; Editor functions on the front
165    of the keys; 2-key 4-direction cursor-pad)
166166
167167
168* Commodore CBM SP9000   
168* Commodore CBM SP9000
169169
170170  Similar to Super PET. Dual uP 6502/6809, 96kB RAM, business keyboard.
171171
172172
173173* Commodore PET 8296 / CBM 8296 (1984) - BASIC 4, 12" Screen
174174
175  Shipped with 128k RAM and separate keyboard, it is a complete redesign of the
176PET universal board. It fits into the separate keyboard case, and directly holds
177128k RAM, of which 96k can be used as in the 8096. In addition, using "user
178jumpers" on the motherboard, the ROM can be completely switched off to access
179the RAM "under the ROM", so that the complete 128k RAM are accessible. The "user
180jumpers" could be set to connect to the userport, so this could even be done
175  Shipped with 128k RAM and separate keyboard, it is a complete redesign of the
176PET universal board. It fits into the separate keyboard case, and directly holds
177128k RAM, of which 96k can be used as in the 8096. In addition, using "user
178jumpers" on the motherboard, the ROM can be completely switched off to access
179the RAM "under the ROM", so that the complete 128k RAM are accessible. The "user
180jumpers" could be set to connect to the userport, so this could even be done
181181under program control.
182182
183183CPU: MOS 6502 (1 MHz)
r4018r4019
185185ROM: 24 Kilobytes
186186Video: MOS Technology 6545 CRTC (12" Monochrome displays; 80 columns x 25 rows)
187187Sound: Piezo electronic speaker (One square wave voice; Three octaves)
188Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 Port; Commodore Datasette port;
189   'EXPANSION' port; CBM parallel programmable "User" port)
188Ports: MOS 6520 PIA, MOS 6522 VIA (IEEE-488 Port; Commodore Datasette port;
189    'EXPANSION' port; CBM parallel programmable "User" port)
190190Keyboard: Full 73 key QWERTY (11 key numeric keypad!; 4 direction 2-key cursor-pad)
191191
192see http://www.6502.org/users/andre/petindex/8x96.html and
193http://www.sothius.com/hypertxt/welcome.html?./additional/cbm8296addition.html for
192see http://www.6502.org/users/andre/petindex/8x96.html and
193http://www.sothius.com/hypertxt/welcome.html?./additional/cbm8296addition.html for
194194more informations
195195
196196
r4018r4019
198198
199199  It was a 8296 with built-in 8250-LP disk drive.
200200
201* Commodore CBM 8296GD
201* Commodore CBM 8296GD
202202
203203  Mentioned at http://www.commodore.ca/products/pet/commodore_pet.htm#Commodore%20PET%20Chronology
204204as a 8296 with a high resolution graphics board and drive. No other info available.
r4018r4019
206206[Other models]
207207
208208
209* Teacher's PET      Simply a PET 2001-N with a different label, due to a
210               marketing campaign in US schools
211* MDS 6500         Modified 2001N-32 with matching 2040 drive.  500 made.
212* "CASSIE"         Synergistics Inc. rebadged 8032
209* Teacher's PET     Simply a PET 2001-N with a different label, due to a
210                    marketing campaign in US schools
211* MDS 6500          Modified 2001N-32 with matching 2040 drive.  500 made.
212* "CASSIE"          Synergistics Inc. rebadged 8032
213213
214214
215215[Board Designs]
216216
217All these models can be reduced to four board types (source William Levak's
217All these models can be reduced to four board types (source William Levak's
218218doc, layouts from PETFAQ):
219219
220220Static Board (PET 2001)
r4018r4019
22522540 column display
226226A video interrupt interferes with disk drive operation.
227227Display timing not compatible with Basic 4.0.
228ROM sockets:  A2  2K character      ROM sockets:  A2  2K character
228ROM sockets:  A2  2K character      ROM sockets:  A2  2K character
229229 (2316B)      H1  C000-CFFF           (6540)       H1  C000-C7FF
230230              H2  D000-DFFF                        H2  D000-D7FF
231231              H3  E000-E7FF                        H3  E000-E7FF
r4018r4019
329329     +------####-####--##-+
330330     !                  # # tape
331331     !                  # #  #2
332     !  R       exp bus # !
332     !  R       exp bus # !
333333     !  A                #!
334334     !  M             9  #!
335335     !                A  #!     4000, 8000 Series
r4018r4019
345345
346346[TO DO]
347347
348* Verify if pre-CRTC models had differences between NTSC & PAL systems.
348* Verify if pre-CRTC models had differences between NTSC & PAL systems.
349349If no differences arise we can merge back the following sets:
350350+ cbm30 (same as pet2001n) & cbm30b (same as pet2001b)
351351+ cbm40o (same as pet40on) & cbm40ob (same as pet40ob)
r4018r4019
362362
363363* Find out answers to the following details:
364364
365+ Did BASIC 2 also come as upgrade ROMs for PET 2001 with Static Board? If
366this is the case, we need to support the splitted versions of the ROMs as
365+ Did BASIC 2 also come as upgrade ROMs for PET 2001 with Static Board? If
366this is the case, we need to support the splitted versions of the ROMs as
367367an alternative BIOS to pet2001.
368368+ Did final PET 40XX & CBM 40XX with 40 Columns & CRTC support had business or
369369normal keyboards?
370370
371371* Find confirmation about some models (which I don't believe ever existed,
372   but...):
372    but...):
373373
374+ were there PET 2001-16k & PET 2001-32k with Calculator type keyboard?
374+ were there PET 2001-16k & PET 2001-32k with Calculator type keyboard?
375375+ were there CBM 20XX in Europe?
376+ what about the following unrealistic RAM configurations: 4004? 8008? 8016?
3778064?
376+ what about the following unrealistic RAM configurations: 4004? 8008? 8016?
3778064?
378378+ did a CBM 210 exist?
379379
380380*/
r4018r4019
408408   AM_RANGE(0xe810, 0xe813) AM_READWRITE(pia_0_r, pia_0_w)
409409   AM_RANGE(0xe820, 0xe823) AM_READWRITE(pia_1_r, pia_1_w)
410410   AM_RANGE(0xe840, 0xe84f) AM_DEVREADWRITE(VIA6522, "via6522_0", via_r, via_w)
411/*   AM_RANGE(0xe900, 0xe91f) AM_READ(cbm_ieee_state)   // for debugging */
411/*  AM_RANGE(0xe900, 0xe91f) AM_READ(cbm_ieee_state)    // for debugging */
412412   AM_RANGE(0xf000, 0xffff) AM_ROM
413413ADDRESS_MAP_END
414414
r4018r4019
499499
500500static INPUT_PORTS_START( pet )
501501   PORT_INCLUDE( pet_keyboard )   /* ROW0 -> ROW9 */
502   
502
503503   PORT_INCLUDE( pet_special )      /* SPECIAL */
504504
505505   PORT_INCLUDE( pet_config )      /* CFG */
r4018r4019
702702
703703   MDRV_VIDEO_START( pet_crtc )
704704   MDRV_VIDEO_UPDATE( pet_crtc )
705   
705
706706   MDRV_IMPORT_FROM(pet4_cartslot)
707707MACHINE_DRIVER_END
708708
r4018r4019
731731   MDRV_GFXDECODE( pet80 )
732732   MDRV_VIDEO_START( pet_crtc )
733733   MDRV_VIDEO_UPDATE( pet_crtc )
734   
734
735735   MDRV_IMPORT_FROM(pet4_cartslot)
736736MACHINE_DRIVER_END
737737
r4018r4019
769769
770770/* PET 2001 - Board type 1 (Static Board) */
771771/* BASIC 1 - "*** COMMODORE BASIC ***" at boot */
772/* Four board variations depending on
773   ROM sockets: either 6540 or 2316B
774   RAM: either 6550 or 2114
775The ROM content is the same in both cases, but the labels differ. Below we use labels
772/* Four board variations depending on
773    ROM sockets: either 6540 or 2316B
774    RAM: either 6550 or 2114
775The ROM content is the same in both cases, but the labels differ. Below we use labels
776776from the 2316B version. For documentation sake, these would have been the labels based on
777777the board with 6540 ROMs
778778
r4018r4019
785785901439-07.h7
786786901439-08.a2
787787
788Also, in some board with 2316B, the location of the ROMs changes h1 <-> h5, h2 <-> h6 and
788Also, in some board with 2316B, the location of the ROMs changes h1 <-> h5, h2 <-> h6 and
789789h4 <-> h7
790790*/
791791
r4018r4019
968968
969969
970970/* Two different layouts are documented for the m6809 */
971/* The 2532 EEPROM listed below (2516 for the .u21 one) could have been replaced by three 2764 EEPROM.
971/* The 2532 EEPROM listed below (2516 for the .u21 one) could have been replaced by three 2764 EEPROM.
972972In this case the labels would have been as follows
973973
974974970018-12.u47 (contents: u17+u18 below)
975970019-12.u48 (contents: u19+u20 below)
975970019-12.u48 (contents: u19+u20 below)
976976970020-12.u49 (contents: u21+u22 below)
977977
978978*/
r4018r4019
10051005   ROM_REGION( 0x20000, "main", 0 )
10061006   ROM_LOAD( "324746-01.ue7", 0xb000, 0x3000, CRC(7935b528) SHA1(5ab17ee70467152bf2130e3f48a2aa81e9df93c9) )   // BASIC 4 // FIX ME!!
10071007   ROM_CONTINUE(            0xf000, 0x1000 )
1008   ROM_LOAD( "901474-04.ue8", 0xe000, 0x800,  CRC(c1ffca3a) SHA1(7040b283ba39e9630e3d147f7d076b7abc39bc70) )   // Dated 0384, coincides with 3681 above according to AndrŽ Fachat's notes
1008   ROM_LOAD( "901474-04.ue8", 0xe000, 0x800,  CRC(c1ffca3a) SHA1(7040b283ba39e9630e3d147f7d076b7abc39bc70) )   // Dated 0384, coincides with 3681 above according to Andr? Fachat's notes
10091009
10101010   ROM_REGION( 0x4000, "gfx1", 0 )
10111011   ROM_LOAD( "901447-10.uc5", 0x0000, 0x800, CRC(d8408674) SHA1(0157a2d55b7ac4eaeb38475889ebeea52e2593db) )   // Character Generator

Previous 15994 Revisions Next


© 1998-2018 The MESS Team