Previous 15994 Revisions Next

r4803 Saturday 23rd May, 2009 at 14:00:29 UTC by Miodrag Milanović
[POLY88] Added Poly8813
[docs]messnew.txt
[src/mess]messdriv.c
[src/mess/drivers]poly88.c
[src/mess/machine]poly88.c

src/mess/messdriv.c
r4802r4803
11841184
11851185   /* PolyMorphic Systems */
11861186   DRIVER( poly88 )
1187   DRIVER( poly8813 )
11871188     
11881189   /* Bondwell */
11891190   DRIVER( bw2 )
src/mess/machine/poly88.c
r4802r4803
1616static UINT8 last_code = 0;
1717static UINT8 int_vector = 0;
1818static emu_timer * poly88_cassette_timer;
19static emu_timer * poly88_usart_timer;
1920
21static TIMER_CALLBACK(poly88_usart_timer_callback)
22{
23   int_vector = 0xe7;
24   cpu_set_input_line(cputag_get_cpu(machine, "maincpu"), 0, HOLD_LINE);   
25}
26
2027WRITE8_HANDLER(poly_baud_rate_w)
2128{
2229   logerror("poly_baud_rate_w %02x\n",data);
30   poly88_usart_timer = timer_alloc(space->machine, poly88_usart_timer_callback, NULL);
31   timer_adjust_periodic(poly88_usart_timer, attotime_zero, 0, ATTOTIME_IN_HZ(300));
32   
2333}
2434
2535static UINT8 row_number(UINT8 code) {
r4802r4803
135145static TIMER_CALLBACK(poly88_cassette_timer_callback)
136146{
137147   int data;
138//   int current_level;
139//   static int previous_level = 0;
148   int current_level;
149   static int previous_level = 0;
140150   static int clk_level = 1;
141151   static int clk_level_tape = 1;
142152
143   //int_vector = 0xe7;
144   //cpu_set_input_line(cputag_get_cpu(machine, "maincpu"), 0, HOLD_LINE);   
145153
146154//   if (!(input_port_read(machine, "DSW0") & 0x02))   /* V.24 / Tape Switch */
147155   //{
148156      /* tape reading */
149/*      if (cassette_get_state(devtag_get_device(machine, "cassette"))&CASSETTE_PLAY)
157      if (cassette_get_state(devtag_get_device(machine, "cassette"))&CASSETTE_PLAY)
150158      {
151159               if (clk_level_tape)
152160               {
r4802r4803
160168                  if (previous_level!=current_level)
161169                  {
162170                     data = (!previous_level && current_level) ? 1 : 0;
163
164                     set_out_data_bit(pmd85_cassette_serial_connection.State, data);
165                     serial_connection_out(machine, &pmd85_cassette_serial_connection);
171//data = current_level;
172                     set_out_data_bit(poly88_cassette_serial_connection.State, data);
173                     serial_connection_out(machine, &poly88_cassette_serial_connection);
166174                     msm8251_receive_clock(devtag_get_device(machine, "uart"));
167175
168176                     clk_level_tape = 1;
169177                  }
170178               }
171179      }
172      */
180     
173181      /* tape writing */
174182      if (cassette_get_state(devtag_get_device(machine, "cassette"))&CASSETTE_RECORD)
175183      {
r4802r4803
202210DRIVER_INIT ( poly88 )
203211{
204212   poly88_cassette_timer = timer_alloc(machine, poly88_cassette_timer_callback, NULL);
205   timer_adjust_periodic(poly88_cassette_timer, attotime_zero, 0, ATTOTIME_IN_HZ(2400));
213   timer_adjust_periodic(poly88_cassette_timer, attotime_zero, 0, ATTOTIME_IN_HZ(600));
206214
207215   serial_connection_init(machine, &poly88_cassette_serial_connection);
208216   serial_connection_set_in_callback(machine, &poly88_cassette_serial_connection, poly88_cassette_write);
r4802r4803
318326      }
319327      pos+=recordLen;
320328   }   
329   device_reset(devtag_get_device(image->machine, "uart"));
321330   return INIT_PASS;
322331}
src/mess/drivers/poly88.c
r4802r4803
99#include "driver.h"
1010#include "cpu/i8085/i8085.h"
1111#include "devices/cassette.h"
12#include "sound/wave.h"
1213#include "includes/poly88.h"
1314
1415static ADDRESS_MAP_START(poly88_mem, ADDRESS_SPACE_PROGRAM, 8)
r4802r4803
2425
2526static ADDRESS_MAP_START( poly88_io , ADDRESS_SPACE_IO, 8)
2627   ADDRESS_MAP_UNMAP_HIGH
27   AM_RANGE(0x01, 0x01) AM_DEVREADWRITE("uart", msm8251_status_r,msm8251_control_w)
2828   AM_RANGE(0x00, 0x00) AM_DEVREADWRITE("uart", msm8251_data_r,msm8251_data_w)
29   AM_RANGE(0x01, 0x01) AM_DEVREADWRITE("uart", msm8251_status_r,msm8251_control_w)   
2930   AM_RANGE(0x04, 0x04) AM_WRITE(poly_baud_rate_w)
3031   AM_RANGE(0x08, 0x08) AM_WRITE(poly_intr_w)
3132   AM_RANGE(0xf8, 0xf8) AM_READ(poly_keyboard_r)
3233ADDRESS_MAP_END
3334
35static ADDRESS_MAP_START(poly8813_mem, ADDRESS_SPACE_PROGRAM, 8)
36   ADDRESS_MAP_UNMAP_HIGH
37   AM_RANGE(0x0000, 0x03ff) AM_ROM // Monitor ROM
38   AM_RANGE(0x0400, 0x0bff) AM_ROM // Disk System ROM
39   AM_RANGE(0x0c00, 0x0fff) AM_RAM // System RAM
40   AM_RANGE(0x1800, 0x1bff) AM_RAM AM_BASE(&poly_video_ram) // Video RAM
41   AM_RANGE(0x2000, 0xffff) AM_RAM // RAM   
42ADDRESS_MAP_END
43
44static ADDRESS_MAP_START( poly8813_io , ADDRESS_SPACE_IO, 8)
45   ADDRESS_MAP_UNMAP_HIGH
46ADDRESS_MAP_END
47
3448/* Input ports */
3549INPUT_PORTS_START( poly88 )
3650   PORT_START("LINEC")   
r4802r4803
151165    MDRV_VIDEO_START(poly88)
152166    MDRV_VIDEO_UPDATE(poly88)
153167   
168   /* audio hardware */
169   MDRV_SPEAKER_STANDARD_MONO("mono")
170   MDRV_SOUND_WAVE_ADD("wave", "cassette")
171   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
172
154173    /* cassette */
155174   MDRV_CASSETTE_ADD( "cassette", poly88_cassette_config )
156175   
r4802r4803
161180   MDRV_SNAPSHOT_ADD("snapshot", poly88, "img", 0)   
162181MACHINE_DRIVER_END
163182
183static MACHINE_DRIVER_START( poly8813 )
184   MDRV_IMPORT_FROM(poly88)
185   
186   MDRV_CPU_MODIFY("maincpu")
187   MDRV_CPU_PROGRAM_MAP(poly8813_mem)
188   MDRV_CPU_IO_MAP(poly8813_io)
189MACHINE_DRIVER_END
190
164191static SYSTEM_CONFIG_START(poly88)
165192SYSTEM_CONFIG_END
166193
r4802r4803
172199     ROM_LOAD( "tbasic_2.rom", 0x0800, 0x0400, CRC(f2619232) SHA1(eb6fb0356d2fb153111cfddf39eab10253cb4c53))
173200ROM_END
174201
202ROM_START( poly8813 )
203   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
204   ROM_LOAD( "poly8813-1.bin", 0x0000, 0x0400, CRC(7fd980a0) SHA1(a71d5999deb4323a11db1c0ea0dcb1dacfaf47ef))
205     ROM_LOAD( "poly8813-2.rom", 0x0400, 0x0400, CRC(1ad7c06c) SHA1(c96b8f03c184de58dbdcee18d297dbccf2d77176))
206     ROM_LOAD( "poly8813-3.rom", 0x0800, 0x0400, CRC(3df57e5b) SHA1(5b0c4febfc7515fc07e63dcb21d0ab32bc6a2e46))
207ROM_END
175208/* Driver */
176209
177210/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    CONFIG COMPANY                 FULLNAME       FLAGS */
178COMP( 1976, poly88,  0,     0,        poly88,    poly88,  poly88, poly88,"PolyMorphic Systems",   "Poly-88",    GAME_NOT_WORKING)
211COMP( 1976, poly88,  0,     0,        poly88,    poly88,  poly88, poly88,"PolyMorphic Systems",   "Poly-88",    0)
212COMP( 1977, poly8813,poly88,0,        poly8813,    poly88,  poly88, poly88,"PolyMorphic Systems",   "Poly-8813",GAME_NOT_WORKING)
179213
docs/messnew.txt
r4802r4803
1717- NTS DreamWriter T200 (not working)  [Roberto Carlos
1818  Fernandez Gerhardt, Wilbert Pol]
1919- PolyMorphic Systems Poly-88 [Miodrag Milanovic]
20- PolyMorphic Systems Poly-8813 (not working) [Miodrag Milanovic]
2021- Pravetz 82, 8M and 8C [Miodrag Milanovic]
2122- Ringo 470 (not working) [Miodrag Milanovic]
2223- Samsung SPC-1000 [Miodrag Milanovic]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team