Previous 15994 Revisions Next

r4935 Thursday 4th June, 2009 at 12:17:04 UTC by Curt Coder
Added skeleton driver for PROF-80.
[docs]messnew.txt
[src/mess]mess.mak messdriv.c
[src/mess/drivers]prof80.c*
[src/mess/includes]prof80.h*

src/mess/includes/prof80.h
r0r4935
1#ifndef __PROF80__
2#define __PROF80__
3
4#define SCREEN_TAG      "screen"
5
6#define Z80_TAG         "z1"
7#define NEC765_TAG      "z38"
8#define UPD1990A_TAG   "z43"
9#define MC6845_TAG      "z30"
10#define PPI8255_TAG      "z6"
11#define Z80STI_TAG      "z9"
12
13typedef struct _prof80_state prof80_state;
14struct _prof80_state
15{
16   /* clock state */
17   int rtc_data;         /* RTC data output */
18
19   const device_config *upd1990a;
20};
21
22#endif
src/mess/messdriv.c
r4934r4935
13901390    DRIVER( unior)
13911391    DRIVER( vec1200)
13921392    DRIVER( pk6128c)
1393   DRIVER( prof80 )
13931394
13941395#endif /* DRIVER_RECURSIVE */
src/mess/mess.mak
r4934r4935
14331433   $(MESS_DRIVERS)/x07.o \
14341434   $(MESS_DRIVERS)/pk8000.o \
14351435   $(MESS_DRIVERS)/unior.o \
1436   $(MESS_DRIVERS)/prof80.o \
14361437   
14371438#-------------------------------------------------
14381439# layout dependencies
src/mess/drivers/prof80.c
r0r4935
1/*
2
3   PROF-80
4
5   http://www.prof80.de/
6
7*/
8
9#include "driver.h"
10#include "includes/prof80.h"
11#include "cpu/z80/z80.h"
12#include "video/mc6845.h"
13#include "machine/8255ppi.h"
14#include "machine/nec765.h"
15#include "machine/upd1990a.h"
16
17/* Memory Maps */
18
19static ADDRESS_MAP_START( prof80_mem, ADDRESS_SPACE_PROGRAM, 8 )
20    AM_RANGE(0x0000, 0x0fff) AM_RAMBANK(1)
21    AM_RANGE(0x1000, 0x1fff) AM_RAMBANK(2)
22    AM_RANGE(0x2000, 0x2fff) AM_RAMBANK(3)
23    AM_RANGE(0x3000, 0x3fff) AM_RAMBANK(4)
24    AM_RANGE(0x4000, 0x4fff) AM_RAMBANK(5)
25    AM_RANGE(0x5000, 0x5fff) AM_RAMBANK(6)
26    AM_RANGE(0x6000, 0x6fff) AM_RAMBANK(7)
27    AM_RANGE(0x7000, 0x7fff) AM_RAMBANK(8)
28    AM_RANGE(0x8000, 0x8fff) AM_RAMBANK(9)
29    AM_RANGE(0x9000, 0x9fff) AM_RAMBANK(10)
30    AM_RANGE(0xa000, 0xafff) AM_RAMBANK(11)
31    AM_RANGE(0xb000, 0xbfff) AM_RAMBANK(12)
32    AM_RANGE(0xc000, 0xcfff) AM_RAMBANK(13)
33    AM_RANGE(0xd000, 0xdfff) AM_RAMBANK(14)
34    AM_RANGE(0xe000, 0xefff) AM_RAMBANK(15)
35    AM_RANGE(0xf000, 0xffff) AM_RAMBANK(16)
36ADDRESS_MAP_END
37
38static ADDRESS_MAP_START( prof80_io, ADDRESS_SPACE_IO, 8 )
39//   AM_RANGE(0xd8, 0xd8) AM_WRITE(flr_w)
40//   AM_RANGE(0xda, 0xda) AM_READ(status_r)
41//   AM_RANGE(0xdb, 0xdb) AM_READ(status2_r)
42//   AM_RANGE(0xdc, 0xdc) AM_READ(fdc_status_r)
43//   AM_RANGE(0xdd, 0xdd) AM_DEVREADWRITE(NEC765_TAG, fdc_r, fdc_w)
44//   AM_RANGE(0xde, 0xdf) AM_WRITE(mmu_w)
45ADDRESS_MAP_END
46
47static ADDRESS_MAP_START( grip_mem, ADDRESS_SPACE_PROGRAM, 8 )
48    AM_RANGE(0x0000, 0x3fff) AM_ROM
49    AM_RANGE(0x4000, 0x47ff) AM_RAM
50    AM_RANGE(0x8000, 0xffff) AM_RAMBANK(17)
51ADDRESS_MAP_END
52
53static ADDRESS_MAP_START( grip_io, ADDRESS_SPACE_IO, 8 )
54//   AM_RANGE(0x00, 0x00) AM_READWRITE(stb_r, stb_w)
55//   AM_RANGE(0x10, 0x10) AM_WRITE(cc3_w)
56//   AM_RANGE(0x11, 0x11) AM_WRITE(vol0_w)
57//   AM_RANGE(0x12, 0x12) AM_WRITE(rts_w)
58//   AM_RANGE(0x13, 0x13) AM_WRITE(page_w)
59//   AM_RANGE(0x14, 0x14) AM_WRITE(cc1_w)
60//   AM_RANGE(0x15, 0x15) AM_WRITE(cc2_w)
61//   AM_RANGE(0x16, 0x16) AM_WRITE(flash_w)
62//   AM_RANGE(0x17, 0x17) AM_WRITE(vol1_w)
63//   AM_RANGE(0x20, 0x2f) AM_DEVREADWRITE(Z80STI_TAG, z80sti_r, z80sti_w)
64//   AM_RANGE(0x30, 0x30) AM_READWRITE(lrs_r, lrs_w)
65//   AM_RANGE(0x40, 0x40) AM_READ(status_r)
66//   AM_RANGE(0x50, 0x50) AM_DEVWRITE(MC6845_TAG, mc6845_address_w)
67//   AM_RANGE(0x52, 0x52) AM_DEVWRITE(MC6845_TAG, mc6845_register_w)
68//   AM_RANGE(0x53, 0x53) AM_DEVREAD(MC6845_TAG, mc6845_register_r)
69//   AM_RANGE(0x60, 0x60) AM_DEVWRITE("centronics", centronics_data_w)
70//   AM_RANGE(0x70, 0x73) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
71ADDRESS_MAP_END
72
73/* Input Ports */
74
75INPUT_PORTS_START( prof80 )
76INPUT_PORTS_END
77
78/* Video */
79
80static VIDEO_START( prof80 )
81{
82}
83
84static VIDEO_UPDATE( prof80 )
85{
86    return 0;
87}
88
89/* uPD1990A Interface */
90
91static WRITE_LINE_DEVICE_HANDLER( prof80_upd1990a_data_w )
92{
93   prof80_state *driver_state = device->machine->driver_data;
94
95   driver_state->rtc_data = state;
96}
97
98static UPD1990A_INTERFACE( prof80_upd1990a_intf )
99{
100   DEVCB_LINE(prof80_upd1990a_data_w),
101   DEVCB_NULL
102};
103
104/* Machine Initialization */
105
106static MACHINE_START( prof80 )
107{
108   prof80_state *state = machine->driver_data;
109
110   /* find devices */
111   state->upd1990a = devtag_get_device(machine, UPD1990A_TAG);
112
113   /* initialize RTC */
114   upd1990a_cs_w(state->upd1990a, 1);
115   upd1990a_oe_w(state->upd1990a, 1);
116
117   /* register for state saving */
118   state_save_register_global(machine, state->rtc_data);
119}
120
121/* Machine Drivers */
122
123static MACHINE_DRIVER_START( prof80 )
124   MDRV_DRIVER_DATA(prof80_state)
125
126    /* basic machine hardware */
127    MDRV_CPU_ADD(Z80_TAG, Z80, XTAL_6MHz)
128    MDRV_CPU_PROGRAM_MAP(prof80_mem)
129    MDRV_CPU_IO_MAP(prof80_io)
130 
131   MDRV_MACHINE_START(prof80)
132
133    /* video hardware */
134    MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
135    MDRV_SCREEN_REFRESH_RATE(60)
136   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
137   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
138    MDRV_SCREEN_SIZE(640, 480)
139    MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479)
140    MDRV_PALETTE_LENGTH(2)
141 
142    MDRV_VIDEO_START(prof80)
143    MDRV_VIDEO_UPDATE(prof80)
144
145   /* devices */
146   MDRV_UPD1990A_ADD(UPD1990A_TAG, XTAL_32_768kHz, prof80_upd1990a_intf)
147//   MDRV_PPI8255_ADD(PPI8255_TAG, grip_ppi8255_interface)
148MACHINE_DRIVER_END
149
150/* ROMs */
151
152ROM_START( prof80 )
153   ROM_REGION( 0x800, "prof80", 0 )
154   ROM_DEFAULT_BIOS( "v17" )
155   ROM_SYSTEM_BIOS( 0, "v15", "v1.5" )
156   ROMX_LOAD( "prof80v15.z7", 0x0000, 0x0800, CRC(8f74134c) SHA1(83f9dcdbbe1a2f50006b41d406364f4d580daa1f), ROM_BIOS(1) )
157   ROM_SYSTEM_BIOS( 1, "v16", "v1.6" )
158   ROMX_LOAD( "prof80v16.z7", 0x0000, 0x0800, CRC(7d3927b3) SHA1(bcc15fd04dbf1d6640115be595255c7b9d2a7281), ROM_BIOS(2) )
159   ROM_SYSTEM_BIOS( 2, "v17", "v1.7" )
160   ROMX_LOAD( "prof80v17.z7", 0x0000, 0x0800, CRC(53305ff4) SHA1(3ea209093ac5ac8a5db618a47d75b705965cdf44), ROM_BIOS(3) )
161
162   ROM_REGION( 0x10000, "grip", 0 )
163   ROM_LOAD( "grip.z2", 0x0000, 0x4000, NO_DUMP )
164ROM_END
165
166/* System Configurations */
167
168static SYSTEM_CONFIG_START( prof80 )
169   CONFIG_RAM_DEFAULT   (128 * 1024)
170SYSTEM_CONFIG_END
171
172/* System Drivers */
173
174/*    YEAR  NAME   PARENT  COMPAT  MACHINE INPUT   INIT  CONFIG COMPANY  FULLNAME   FLAGS */
175COMP( 1984, prof80,     0,      0, prof80, prof80, 0, prof80,  "Conitec Datensysteme", "PROF-80", GAME_NO_SOUND | GAME_NOT_WORKING)
docs/messnew.txt
r4934r4935
112112- PK8000 Sura/Hobby
113113- PK6812c
114114- Profi
115- PROF-80
115116- Poly-Computer 880
116117- Quorum
117118- Robotron A5120

Previous 15994 Revisions Next


© 1998-2018 The MESS Team