Previous 15994 Revisions Next

r11022 Thursday 31st March, 2011 at 20:15:25 UTC by Curt Coder
[TIKI100] Modernized driver.
[src/mess/drivers]tiki100.c
[src/mess/includes]tiki100.h

src/mess/includes/tiki100.h
r11021r11022
1#pragma once
2
13#ifndef __TIKI100__
24#define __TIKI100__
35
6#define ADDRESS_MAP_MODERN
7
8#include "emu.h"
9#include "cpu/z80/z80.h"
10#include "cpu/z80/z80daisy.h"
11#include "formats/basicdsk.h"
12#include "imagedev/flopdrv.h"
13#include "machine/ram.h"
14#include "machine/z80ctc.h"
15#include "machine/z80dart.h"
16#include "machine/z80pio.h"
17#include "machine/wd17xx.h"
18#include "sound/ay8910.h"
19
420#define SCREEN_TAG      "screen"
521#define Z80_TAG         "z80"
622#define Z80DART_TAG      "z80dart"
r11021r11022
2036{
2137public:
2238   tiki100_state(running_machine &machine, const driver_device_config_base &config)
23      : driver_device(machine, config) { }
39      : driver_device(machine, config),
40        m_maincpu(*this, Z80_TAG),
41        m_ctc(*this, Z80CTC_TAG),
42        m_fdc(*this, FD1797_TAG),
43        m_ram(*this, RAM_TAG),
44        m_floppy0(*this, FLOPPY_0),
45        m_floppy1(*this, FLOPPY_1)
46   { }
2447
48   required_device<cpu_device> m_maincpu;
49   required_device<z80ctc_device> m_ctc;
50   required_device<device_t> m_fdc;
51   required_device<device_t> m_ram;
52   required_device<device_t> m_floppy0;
53   required_device<device_t> m_floppy1;
54
55   virtual void machine_start();
56
57   virtual bool screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect);
58
59   READ8_MEMBER( gfxram_r );
60   WRITE8_MEMBER( gfxram_w );
61   READ8_MEMBER( keyboard_r );
62   WRITE8_MEMBER( keyboard_w );
63   WRITE8_MEMBER( video_mode_w );
64   WRITE8_MEMBER( palette_w );
65   WRITE8_MEMBER( system_w );
66   WRITE_LINE_MEMBER( ctc_z1_w );
67   WRITE8_MEMBER( video_scroll_w );
68
69   void bankswitch();
70
2571   /* memory state */
26   int rome;
27   int vire;
72   int m_rome;
73   int m_vire;
2874
2975   /* video state */
30   UINT8 *video_ram;
31   UINT8 scroll;
32   UINT8 mode;
33   UINT8 palette;
76   UINT8 *m_video_ram;
77   UINT8 m_scroll;
78   UINT8 m_mode;
79   UINT8 m_palette;
3480
3581   /* keyboard state */
36   int keylatch;
37
38   /* devices */
39   device_t *fd1797;
40   device_t *z80ctc;
82   int m_keylatch;
4183};
4284
4385#endif
src/mess/drivers/tiki100.c
r11021r11022
2323
2424*/
2525
26#include "emu.h"
2726#include "includes/tiki100.h"
28#include "cpu/z80/z80.h"
29#include "cpu/z80/z80daisy.h"
30#include "imagedev/flopdrv.h"
31#include "formats/basicdsk.h"
32#include "machine/z80ctc.h"
33#include "machine/z80dart.h"
34#include "machine/z80pio.h"
35#include "machine/wd17xx.h"
36#include "sound/ay8910.h"
37#include "machine/ram.h"
3827
39INLINE device_t *get_floppy_image(running_machine &machine, int drive)
40{
41   return floppy_get_device(machine, drive);
42}
43
4428/* Memory Banking */
4529
46static READ8_HANDLER( gfxram_r )
30READ8_MEMBER( tiki100_state::gfxram_r )
4731{
48   tiki100_state *state = space->machine().driver_data<tiki100_state>();
32   UINT16 addr = (offset + (m_scroll << 7)) & TIKI100_VIDEORAM_MASK;
4933
50   UINT16 addr = (offset + (state->scroll << 7)) & TIKI100_VIDEORAM_MASK;
51
52   return state->video_ram[addr];
34   return m_video_ram[addr];
5335}
5436
55static WRITE8_HANDLER( gfxram_w )
37WRITE8_MEMBER( tiki100_state::gfxram_w )
5638{
57   tiki100_state *state = space->machine().driver_data<tiki100_state>();
39   UINT16 addr = (offset + (m_scroll << 7)) & TIKI100_VIDEORAM_MASK;
5840
59   UINT16 addr = (offset + (state->scroll << 7)) & TIKI100_VIDEORAM_MASK;
60
61   state->video_ram[addr] = data;
41   m_video_ram[addr] = data;
6242}
6343
64static void tiki100_bankswitch(running_machine &machine)
44void tiki100_state::bankswitch()
6545{
66   tiki100_state *state = machine.driver_data<tiki100_state>();
67   address_space *program = machine.device(Z80_TAG)->memory().space(AS_PROGRAM);
46   address_space *program = m_maincpu->memory().space(AS_PROGRAM);
6847
69   if (state->vire)
48   if (m_vire)
7049   {
71      if (!state->rome)
50      if (!m_rome)
7251      {
7352         /* reserved */
7453         program->unmap_readwrite(0x0000, 0xffff);
r11021r11022
7655      else
7756      {
7857         /* GFXRAM, GFXRAM, RAM */
79         program->install_legacy_readwrite_handler(0x0000, 0x7fff, FUNC(gfxram_r), FUNC(gfxram_w));
58         program->install_readwrite_handler(0x0000, 0x7fff, read8_delegate_create(tiki100_state, gfxram_r, *this), write8_delegate_create(tiki100_state, gfxram_w, *this));
8059         program->install_readwrite_bank(0x8000, 0xffff, "bank3");
8160
82         memory_set_bank(machine, "bank1", BANK_VIDEO_RAM);
83         memory_set_bank(machine, "bank2", BANK_VIDEO_RAM);
84         memory_set_bank(machine, "bank3", BANK_RAM);
61         memory_set_bank(m_machine, "bank1", BANK_VIDEO_RAM);
62         memory_set_bank(m_machine, "bank2", BANK_VIDEO_RAM);
63         memory_set_bank(m_machine, "bank3", BANK_RAM);
8564      }
8665   }
8766   else
8867   {
89      if (!state->rome)
68      if (!m_rome)
9069      {
9170         /* ROM, RAM, RAM */
9271         program->install_read_bank(0x0000, 0x3fff, "bank1");
93         program->unmap_write( 0x0000, 0x3fff);
72         program->unmap_write(0x0000, 0x3fff);
9473         program->install_readwrite_bank(0x4000, 0x7fff, "bank2");
9574         program->install_readwrite_bank(0x8000, 0xffff, "bank3");
9675
97         memory_set_bank(machine, "bank1", BANK_ROM);
98         memory_set_bank(machine, "bank2", BANK_RAM);
99         memory_set_bank(machine, "bank3", BANK_RAM);
76         memory_set_bank(m_machine, "bank1", BANK_ROM);
77         memory_set_bank(m_machine, "bank2", BANK_RAM);
78         memory_set_bank(m_machine, "bank3", BANK_RAM);
10079      }
10180      else
10281      {
r11021r11022
10584         program->install_readwrite_bank(0x4000, 0x7fff, "bank2");
10685         program->install_readwrite_bank(0x8000, 0xffff, "bank3");
10786
108         memory_set_bank(machine, "bank1", BANK_RAM);
109         memory_set_bank(machine, "bank2", BANK_RAM);
110         memory_set_bank(machine, "bank3", BANK_RAM);
87         memory_set_bank(m_machine, "bank1", BANK_RAM);
88         memory_set_bank(m_machine, "bank2", BANK_RAM);
89         memory_set_bank(m_machine, "bank3", BANK_RAM);
11190      }
11291   }
11392}
11493
11594/* Read/Write Handlers */
11695
117static READ8_HANDLER( keyboard_r )
96READ8_MEMBER( tiki100_state::keyboard_r )
11897{
119   tiki100_state *state = space->machine().driver_data<tiki100_state>();
120
12198   static const char *const keynames[] = { "ROW1", "ROW2", "ROW3", "ROW4", "ROW5", "ROW6", "ROW7", "ROW8", "ROW9", "ROW10", "ROW11", "ROW12" };
122   UINT8 data = input_port_read(space->machine(), keynames[state->keylatch]);
99   UINT8 data = input_port_read(m_machine, keynames[m_keylatch]);
123100
124   state->keylatch++;
101   m_keylatch++;
125102
126   if (state->keylatch == 12) state->keylatch = 0;
103   if (m_keylatch == 12) m_keylatch = 0;
127104
128105   return data;
129106}
130107
131static WRITE8_HANDLER( keyboard_w )
108WRITE8_MEMBER( tiki100_state::keyboard_w )
132109{
133   tiki100_state *state = space->machine().driver_data<tiki100_state>();
134
135   state->keylatch = 0;
110   m_keylatch = 0;
136111}
137112
138static WRITE8_HANDLER( video_mode_w )
113WRITE8_MEMBER( tiki100_state::video_mode_w )
139114{
140115   /*
141116
r11021r11022
152127
153128    */
154129
155   tiki100_state *state = space->machine().driver_data<tiki100_state>();
130   m_mode = data;
156131
157   state->mode = data;
158
159132   if (BIT(data, 7))
160133   {
161134      int color = data & 0x0f;
162      UINT8 colordata = ~state->palette;
135      UINT8 colordata = ~m_palette;
163136
164      palette_set_color_rgb(space->machine(), color, pal3bit(colordata >> 5), pal3bit(colordata >> 2), pal2bit(colordata >> 0));
137      palette_set_color_rgb(m_machine, color, pal3bit(colordata >> 5), pal3bit(colordata >> 2), pal2bit(colordata >> 0));
165138   }
166139}
167140
168static WRITE8_HANDLER( palette_w )
141WRITE8_MEMBER( tiki100_state::palette_w )
169142{
170143   /*
171144
r11021r11022
182155
183156    */
184157
185   tiki100_state *state = space->machine().driver_data<tiki100_state>();
186
187   state->palette = data;
158   m_palette = data;
188159}
189160
190static WRITE8_HANDLER( system_w )
161WRITE8_MEMBER( tiki100_state::system_w )
191162{
192163   /*
193164
r11021r11022
204175
205176    */
206177
207   tiki100_state *state = space->machine().driver_data<tiki100_state>();
208
209178   /* drive select */
210   if (BIT(data, 0)) wd17xx_set_drive(state->fd1797, 0);
211   if (BIT(data, 1)) wd17xx_set_drive(state->fd1797, 1);
179   if (BIT(data, 0)) wd17xx_set_drive(m_fdc, 0);
180   if (BIT(data, 1)) wd17xx_set_drive(m_fdc, 1);
212181
213182   /* density select */
214   wd17xx_dden_w(state->fd1797, BIT(data, 4));
183   wd17xx_dden_w(m_fdc, BIT(data, 4));
215184
216185   /* floppy motor */
217   floppy_mon_w(get_floppy_image(space->machine(), 0), !BIT(data, 6));
218   floppy_mon_w(get_floppy_image(space->machine(), 1), !BIT(data, 6));
219   floppy_drive_set_ready_state(get_floppy_image(space->machine(), 0), BIT(data, 6), 1);
220   floppy_drive_set_ready_state(get_floppy_image(space->machine(), 1), BIT(data, 6), 1);
186   floppy_mon_w(m_floppy0, !BIT(data, 6));
187   floppy_mon_w(m_floppy1, !BIT(data, 6));
188   floppy_drive_set_ready_state(m_floppy0, BIT(data, 6), 1);
189   floppy_drive_set_ready_state(m_floppy1, BIT(data, 6), 1);
221190
222191   /* GRAFIKK key led */
223   set_led_status(space->machine(), 1, BIT(data, 5));
192   set_led_status(m_machine, 1, BIT(data, 5));
224193
225194   /* LOCK key led */
226   set_led_status(space->machine(), 2, BIT(data, 7));
195   set_led_status(m_machine, 2, BIT(data, 7));
227196
228197   /* bankswitch */
229   state->rome = BIT(data, 2);
230   state->vire = BIT(data, 3);
198   m_rome = BIT(data, 2);
199   m_vire = BIT(data, 3);
231200
232   tiki100_bankswitch(space->machine());
201   bankswitch();
233202}
234203
235204/* Memory Maps */
236205
237static ADDRESS_MAP_START( tiki100_mem, AS_PROGRAM, 8 )
206static ADDRESS_MAP_START( tiki100_mem, AS_PROGRAM, 8, tiki100_state )
238207   ADDRESS_MAP_UNMAP_HIGH
239208   AM_RANGE(0x0000, 0x3fff) AM_RAMBANK("bank1")
240209   AM_RANGE(0x4000, 0x7fff) AM_RAMBANK("bank2")
241210   AM_RANGE(0x8000, 0xffff) AM_RAMBANK("bank3")
242211ADDRESS_MAP_END
243212
244static ADDRESS_MAP_START( tiki100_io, AS_IO, 8 )
213static ADDRESS_MAP_START( tiki100_io, AS_IO, 8, tiki100_state )
245214   ADDRESS_MAP_UNMAP_HIGH
246215   ADDRESS_MAP_GLOBAL_MASK(0xff)
247216   AM_RANGE(0x00, 0x00) AM_MIRROR(0x03) AM_READWRITE(keyboard_r, keyboard_w)
248   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE(Z80DART_TAG, z80dart_cd_ba_r, z80dart_cd_ba_w)
249   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE(Z80PIO_TAG, z80pio_cd_ba_r, z80pio_cd_ba_w)
217   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE_LEGACY(Z80DART_TAG, z80dart_cd_ba_r, z80dart_cd_ba_w)
218   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE_LEGACY(Z80PIO_TAG, z80pio_cd_ba_r, z80pio_cd_ba_w)
250219   AM_RANGE(0x0c, 0x0c) AM_MIRROR(0x03) AM_WRITE(video_mode_w)
251   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE(FD1797_TAG, wd17xx_r, wd17xx_w)
220   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE_LEGACY(FD1797_TAG, wd17xx_r, wd17xx_w)
252221   AM_RANGE(0x14, 0x14) AM_MIRROR(0x01) AM_WRITE(palette_w)
253   AM_RANGE(0x16, 0x16) AM_DEVWRITE(AY8912_TAG, ay8910_address_w)
254   AM_RANGE(0x17, 0x17) AM_DEVREADWRITE(AY8912_TAG, ay8910_r, ay8910_data_w)
255   AM_RANGE(0x18, 0x1b) AM_DEVREADWRITE(Z80CTC_TAG, z80ctc_r, z80ctc_w)
222   AM_RANGE(0x16, 0x16) AM_DEVWRITE_LEGACY(AY8912_TAG, ay8910_address_w)
223   AM_RANGE(0x17, 0x17) AM_DEVREADWRITE_LEGACY(AY8912_TAG, ay8910_r, ay8910_data_w)
224   AM_RANGE(0x18, 0x1b) AM_DEVREADWRITE_LEGACY(Z80CTC_TAG, z80ctc_r, z80ctc_w)
256225   AM_RANGE(0x1c, 0x1c) AM_MIRROR(0x03) AM_WRITE(system_w)
257226//  AM_RANGE(0x20, 0x27) winchester controller
258227//  AM_RANGE(0x60, 0x6f) analog I/O (SINTEF)
r11021r11022
405374
406375/* Video */
407376
408static SCREEN_UPDATE( tiki100 )
377bool tiki100_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect)
409378{
410   tiki100_state *state = screen->machine().driver_data<tiki100_state>();
379   UINT16 addr = (m_scroll << 7);
380   int sx, y, pixel, mode = (m_mode >> 4) & 0x03;
411381
412   UINT16 addr = (state->scroll << 7);
413   int sx, y, pixel, mode = (state->mode >> 4) & 0x03;
414
415382   for (y = 0; y < 256; y++)
416383   {
417384      for (sx = 0; sx < 128; sx++)
418385      {
419         UINT8 data = state->video_ram[addr & TIKI100_VIDEORAM_MASK];
386         UINT8 data = m_video_ram[addr & TIKI100_VIDEORAM_MASK];
420387
421388         switch (mode)
422389         {
r11021r11022
425392            {
426393               int x = (sx * 8) + pixel;
427394
428               *BITMAP_ADDR16(bitmap, y, x) = 0;
395               *BITMAP_ADDR16(&bitmap, y, x) = 0;
429396            }
430397            break;
431398
r11021r11022
435402               int x = (sx * 8) + pixel;
436403               int color = BIT(data, 0);
437404
438               *BITMAP_ADDR16(bitmap, y, x) = color;
405               *BITMAP_ADDR16(&bitmap, y, x) = color;
439406
440407               data >>= 1;
441408            }
r11021r11022
447414               int x = (sx * 8) + (pixel * 2);
448415               int color = data & 0x03;
449416
450               *BITMAP_ADDR16(bitmap, y, x) = color;
451               *BITMAP_ADDR16(bitmap, y, x + 1) = color;
417               *BITMAP_ADDR16(&bitmap, y, x) = color;
418               *BITMAP_ADDR16(&bitmap, y, x + 1) = color;
452419
453420               data >>= 2;
454421            }
r11021r11022
460427               int x = (sx * 8) + (pixel * 4);
461428               int color = data & 0x0f;
462429
463               *BITMAP_ADDR16(bitmap, y, x) = color;
464               *BITMAP_ADDR16(bitmap, y, x + 1) = color;
465               *BITMAP_ADDR16(bitmap, y, x + 2) = color;
466               *BITMAP_ADDR16(bitmap, y, x + 3) = color;
430               *BITMAP_ADDR16(&bitmap, y, x) = color;
431               *BITMAP_ADDR16(&bitmap, y, x + 1) = color;
432               *BITMAP_ADDR16(&bitmap, y, x + 2) = color;
433               *BITMAP_ADDR16(&bitmap, y, x + 3) = color;
467434
468435               data >>= 4;
469436            }
r11021r11022
519486{
520487   tiki100_state *state = timer.machine().driver_data<tiki100_state>();
521488
522   z80ctc_trg0_w(state->z80ctc, 1);
523   z80ctc_trg0_w(state->z80ctc, 0);
489   z80ctc_trg0_w(state->m_ctc, 1);
490   z80ctc_trg0_w(state->m_ctc, 0);
524491
525   z80ctc_trg1_w(state->z80ctc, 1);
526   z80ctc_trg1_w(state->z80ctc, 0);
492   z80ctc_trg1_w(state->m_ctc, 1);
493   z80ctc_trg1_w(state->m_ctc, 0);
527494}
528495
529static WRITE_LINE_DEVICE_HANDLER( ctc_z1_w )
496WRITE_LINE_MEMBER( tiki100_state::ctc_z1_w )
530497{
531498}
532499
r11021r11022
535502   0,                       /* timer disables */
536503   DEVCB_CPU_INPUT_LINE(Z80_TAG, INPUT_LINE_IRQ0),   /* interrupt handler */
537504   DEVCB_LINE(z80ctc_trg2_w),   /* ZC/TO0 callback */
538   DEVCB_LINE(ctc_z1_w),      /* ZC/TO1 callback */
505   DEVCB_DRIVER_LINE_MEMBER(tiki100_state, ctc_z1_w),      /* ZC/TO1 callback */
539506   DEVCB_LINE(z80ctc_trg3_w)   /* ZC/TO2 callback */
540507};
541508
542509/* FD1797 Interface */
543510
544static const wd17xx_interface tiki100_wd17xx_interface =
511static const wd17xx_interface fdc_intf =
545512{
546513   DEVCB_NULL,
547514   DEVCB_NULL,
r11021r11022
551518
552519/* AY-3-8912 Interface */
553520
554static WRITE8_DEVICE_HANDLER( video_scroll_w )
521WRITE8_MEMBER( tiki100_state::video_scroll_w )
555522{
556   tiki100_state *state = device->machine().driver_data<tiki100_state>();
557
558   state->scroll = data;
523   m_scroll = data;
559524}
560525
561526static const ay8910_interface ay8910_intf =
r11021r11022
564529   AY8910_DEFAULT_LOADS,
565530   DEVCB_NULL,
566531   DEVCB_NULL,
567   DEVCB_HANDLER(video_scroll_w),
532   DEVCB_DRIVER_MEMBER(tiki100_state, video_scroll_w),
568533   DEVCB_NULL
569534};
570535
r11021r11022
580545
581546/* Machine Start */
582547
583static MACHINE_START( tiki100 )
548void tiki100_state::machine_start()
584549{
585   tiki100_state *state = machine.driver_data<tiki100_state>();
586
587   /* find devices */
588   state->fd1797 = machine.device(FD1797_TAG);
589   state->z80ctc = machine.device(Z80CTC_TAG);
590
591550   /* allocate video RAM */
592   state->video_ram = auto_alloc_array(machine, UINT8, TIKI100_VIDEORAM_SIZE);
551   m_video_ram = auto_alloc_array(m_machine, UINT8, TIKI100_VIDEORAM_SIZE);
593552
594553   /* setup memory banking */
595   memory_configure_bank(machine, "bank1", BANK_ROM, 1, machine.region(Z80_TAG)->base(), 0);
596   memory_configure_bank(machine, "bank1", BANK_RAM, 1, ram_get_ptr(machine.device(RAM_TAG)), 0);
597   memory_configure_bank(machine, "bank1", BANK_VIDEO_RAM, 1, state->video_ram, 0);
554   UINT8 *ram = ram_get_ptr(m_ram);
598555
599   memory_configure_bank(machine, "bank2", BANK_RAM, 1, ram_get_ptr(machine.device(RAM_TAG)) + 0x4000, 0);
600   memory_configure_bank(machine, "bank2", BANK_VIDEO_RAM, 1, state->video_ram + 0x4000, 0);
556   memory_configure_bank(m_machine, "bank1", BANK_ROM, 1, m_machine.region(Z80_TAG)->base(), 0);
557   memory_configure_bank(m_machine, "bank1", BANK_RAM, 1, ram, 0);
558   memory_configure_bank(m_machine, "bank1", BANK_VIDEO_RAM, 1, m_video_ram, 0);
601559
602   memory_configure_bank(machine, "bank3", BANK_RAM, 1, ram_get_ptr(machine.device(RAM_TAG)) + 0x8000, 0);
560   memory_configure_bank(m_machine, "bank2", BANK_RAM, 1, ram + 0x4000, 0);
561   memory_configure_bank(m_machine, "bank2", BANK_VIDEO_RAM, 1, m_video_ram + 0x4000, 0);
603562
604   tiki100_bankswitch(machine);
563   memory_configure_bank(m_machine, "bank3", BANK_RAM, 1, ram + 0x8000, 0);
605564
565   bankswitch();
566
606567   /* register for state saving */
607   state->save_item(NAME(state->rome));
608   state->save_item(NAME(state->vire));
609   state->save_pointer(NAME(state->video_ram), TIKI100_VIDEORAM_SIZE);
610   state->save_item(NAME(state->scroll));
611   state->save_item(NAME(state->mode));
612   state->save_item(NAME(state->palette));
613   state->save_item(NAME(state->keylatch));
568   save_item(NAME(m_rome));
569   save_item(NAME(m_vire));
570   save_pointer(NAME(m_video_ram), TIKI100_VIDEORAM_SIZE);
571   save_item(NAME(m_scroll));
572   save_item(NAME(m_mode));
573   save_item(NAME(m_palette));
574   save_item(NAME(m_keylatch));
614575}
615576
616577static FLOPPY_OPTIONS_START(tiki100)
r11021r11022
655616/* Machine Driver */
656617
657618static MACHINE_CONFIG_START( tiki100, tiki100_state )
658
659619   /* basic machine hardware */
660620    MCFG_CPU_ADD(Z80_TAG, Z80, 2000000)
661621    MCFG_CPU_PROGRAM_MAP(tiki100_mem)
662622    MCFG_CPU_IO_MAP(tiki100_io)
663623   MCFG_CPU_CONFIG(tiki100_daisy_chain)
664624
665    MCFG_MACHINE_START(tiki100)
666
667625    /* video hardware */
668626    MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
669627    MCFG_SCREEN_REFRESH_RATE(50)
r11021r11022
671629    MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
672630    MCFG_SCREEN_SIZE(1024, 256)
673631    MCFG_SCREEN_VISIBLE_AREA(0, 1024-1, 0, 256-1)
674    MCFG_SCREEN_UPDATE(tiki100)
675632
676633   MCFG_PALETTE_LENGTH(16)
677634
r11021r11022
680637   MCFG_Z80PIO_ADD(Z80PIO_TAG, 2000000, pio_intf)
681638   MCFG_Z80CTC_ADD(Z80CTC_TAG, 2000000, ctc_intf)
682639   MCFG_TIMER_ADD_PERIODIC("ctc", ctc_tick, attotime::from_hz(2000000))
683   MCFG_WD179X_ADD(FD1797_TAG, tiki100_wd17xx_interface) // FD1767PL-02 or FD1797-PL
640   MCFG_WD179X_ADD(FD1797_TAG, fdc_intf) // FD1767PL-02 or FD1797-PL
684641   MCFG_FLOPPY_2_DRIVES_ADD(tiki100_floppy_config)
685642
686643   /* sound hardware */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team