Previous 15994 Revisions Next

r3624 Thursday 27th November, 2008 at 07:54:15 UTC by Robbbert
[SUPER80] Fixed u4 regression, except cass device menu not working.
[src/mess]mess.mak messdriv.c
[src/mess/drivers]super80.c

src/mess/messdriv.c
r3623r3624
939939//128u4   DRIVER( cybikoxt )   /* Cybiko Wireless Intertainment System - Xtreme     */
940940
941941   /* Dick Smith */
942//128u4   DRIVER( super80 )
943//128u4   DRIVER( super80d )
944//128u4   DRIVER( super80e )
945//128u4   DRIVER( super80m )
946//128u4   DRIVER( super80r )
947//128u4   DRIVER( super80v )
942   DRIVER( super80 )
943   DRIVER( super80d )
944   DRIVER( super80e )
945   DRIVER( super80m )
946   DRIVER( super80r )
947   DRIVER( super80v )
948948
949949   /* Galeb */
950950   DRIVER( galeb )
src/mess/mess.mak
r3623r3624
401401   $(MESSOBJ)/sony.a \
402402   $(MESSOBJ)/sinclair.a \
403403   $(MESSOBJ)/special.a \
404   $(MESSOBJ)/super80.a \
404405   $(MESSOBJ)/ut88.a \
405406   $(MESSOBJ)/vector06.a \
406407   $(MESSOBJ)/votrax.a \
r3623r3624
470471#   $(MESSOBJ)/sony.a \
471472#   $(MESSOBJ)/sord.a \
472473#   $(MESSOBJ)/ssystem3.a \
473#   $(MESSOBJ)/super80.a \
474474#   $(MESSOBJ)/svi.a \
475475#   $(MESSOBJ)/svision.a \
476476#   $(MESSOBJ)/synertec.a \
src/mess/drivers/super80.c
r3623r3624
1010#include "sound/speaker.h"
1111#include "machine/centroni.h"
1212#include "devices/printer.h"
13#include "deprecat.h"
1314
1415static UINT8 super80_mhz=2;   /* state of bit 2 of port F0 */
1516static UINT16 vidpg=0xfe00;   /* Home position of video page being displayed */
r3623r3624
152153         pcgram[0x800+offset] = data;
153154
154155         /* decode character graphics again */
155         decodechar(machine->gfx[0], chr, pcgram);
156         decodechar(space->machine->gfx[0], chr, pcgram);
156157      }
157158   }
158159}
r3623r3624
239240      for (x=0; x<32; x++)
240241      {
241242         if (screen_on)
242            code = memory_read_byte(space, vidpg + x + (y<<5));
243            code = memory_read_byte(cputag_get_address_space(Machine,"main",ADDRESS_SPACE_PROGRAM), vidpg + x + (y<<5));
243244
244245         drawgfx(bitmap, screen->machine->gfx[0], code & mask, 0, 0, 0, x*8, y*10,
245246            cliprect, TRANSPARENCY_NONE, 0);
r3623r3624
274275      {
275276         if (screen_on)
276277         {
277            code = memory_read_byte(space, vidpg + x + (y<<5));      /* get character to display */
278            code = memory_read_byte(cputag_get_address_space(Machine,"main",ADDRESS_SPACE_PROGRAM), vidpg + x + (y<<5));      /* get character to display */
278279
279            if (!(options & 0x40)) col = memory_read_byte(space, 0xfe00 + x + (y<<5));   /* byte of colour to display */
280            if (!(options & 0x40)) col = memory_read_byte(cputag_get_address_space(Machine,"main",ADDRESS_SPACE_PROGRAM), 0xfe00 + x + (y<<5));   /* byte of colour to display */
280281         }
281282
282283         drawgfx(bitmap, screen->machine->gfx[cgen], code, col, 0, 0, x*8, y*10,
r3623r3624
348349
349350static Z80PIO_ON_INT_CHANGED( pio_interrupt )
350351{
351   cpunum_set_input_line( device->machine, 0, 0, state ? ASSERT_LINE : CLEAR_LINE );
352   cpu_set_input_line( device->machine->cpu[0], 0, state ? ASSERT_LINE : CLEAR_LINE );
352353}
353354
354355static WRITE8_DEVICE_HANDLER( pio_port_a_w )
r3623r3624
494495   /* bit 7 = printer busy
495496   0 = printer is not busy */
496497
497   if (printer_is_ready(printer_device(machine))==0 )
498   if (printer_is_ready(printer_device(space->machine))==0 )
498499      data |= 0x80;
499500
500501   return data;
r3623r3624
502503
503504static READ8_HANDLER( super80_f2_r )
504505{
505   UINT8 data = input_port_read(machine, "DSW") & 0xf0;   // dip switches on pcb
506   UINT8 data = input_port_read(space->machine, "DSW") & 0xf0;   // dip switches on pcb
506507   data |= cass_data[2];         // bit 0 = output of U1, bit 1 = MDS cass state, bit 2 = current wave_state
507508   data |= 0x08;            // bit 3 - not used
508509   return data;
r3623r3624
516517static WRITE8_HANDLER( super80v_11_w )
517518{
518519   if (mc6845_ind < 16) mc6845_reg[mc6845_ind] = data & mc6845_mask[mc6845_ind];   /* save data in register */
519   if ((mc6845_ind == 1) || (mc6845_ind == 6) || (mc6845_ind == 9)) mc6845_screen_configure(machine); /* adjust screen size */
520   if ((mc6845_ind == 1) || (mc6845_ind == 6) || (mc6845_ind == 9)) mc6845_screen_configure(space->machine); /* adjust screen size */
520521   if ((mc6845_ind > 8) && (mc6845_ind < 12)) mc6845_cursor_configure();      /* adjust cursor shape */
521522}
522523
r3623r3624
538539   if (bits & 0x20) set_led_status(2,(data & 32) ? 0 : 1);      /* bit 5 - LED - scroll lock led is used */
539540   speaker_level_w(0, (data & 8) ? 0 : 1);            /* bit 3 - speaker */
540541   super80_mhz = (data & 4) ? 1 : 2;            /* bit 2 - video on/off */
541   if (bits & 2) cassette_motor( machine, data & 2 ? 1 : 0);   /* bit 1 - cassette motor */
542   if (bits & 1) cassette_output(cassette_device_image(machine), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
542   if (bits & 2) cassette_motor( space->machine, data & 2 ? 1 : 0);   /* bit 1 - cassette motor */
543   if (bits & 1) cassette_output(cassette_device_image(space->machine), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
543544
544545   last_data = data;
545546}
r3623r3624
550551
551552   if (bits & 0x20) set_led_status(2,(data & 32) ? 0 : 1);      /* bit 5 - LED - scroll lock led is used */
552553   speaker_level_w(0, (data & 8) ? 0 : 1);            /* bit 3 - speaker */
553   if (bits & 2) cassette_motor( machine, data & 2 ? 1 : 0);   /* bit 1 - cassette motor */
554   if (bits & 1) cassette_output(cassette_device_image(machine), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
554   if (bits & 2) cassette_motor( space->machine, data & 2 ? 1 : 0);   /* bit 1 - cassette motor */
555   if (bits & 1) cassette_output(cassette_device_image(space->machine), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
555556
556557   last_data = data;
557558}
r3623r3624
564565   super80v_rom_pcg = data & 0x10;               /* bit 4 - bankswitch gfx rom or pcg */
565566   speaker_level_w(0, (data & 8) ? 0 : 1);            /* bit 3 - speaker */
566567   super80v_vid_col = data & 4;               /* bit 2 - bankswitch video or colour ram */
567   if (bits & 2) cassette_motor( machine, data & 2 ? 1 : 0);   /* bit 1 - cassette motor */
568   if (bits & 1) cassette_output(cassette_device_image(machine), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
568   if (bits & 2) cassette_motor( space->machine, data & 2 ? 1 : 0);   /* bit 1 - cassette motor */
569   if (bits & 1) cassette_output(cassette_device_image(space->machine), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
569570
570571   last_data = data;
571572}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team