Previous 15994 Revisions Next

r8100 Thursday 20th May, 2010 at 10:28:34 UTC by Curt Coder
Added skeleton driver for Acorn FileStore E01/E01S.
[docs]messnew.txt
[src/mess]mess.mak messdriv.c
[src/mess/drivers]e01.c*
[src/mess/includes]e01.h*

src/mess/includes/e01.h
r0r8100
1#pragma once
2
3#ifndef __E01__
4#define __E01__
5
6#include "emu.h"
7
8#define R65C102_TAG      "r65c102"
9#define R6522_TAG      "ic21"
10#define WD2793_TAG      "ic20"
11#define MC6854_TAG      "mc6854"
12#define CENTRONICS_TAG   "centronics"
13
14class e01_state
15{
16public:
17   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, e01_state(machine)); }
18
19   e01_state(running_machine &machine) { }
20
21   /* devices */
22   running_device *fdc;
23};
24
25#endif
src/mess/messdriv.c
r8099r8100
16971697   DRIVER( z80dev )
16981698   DRIVER( pegasus )
16991699   DRIVER( pegasusm )
1700   DRIVER( e01 )
1701   DRIVER( e01s )
17001702
17011703#endif /* DRIVER_RECURSIVE */
src/mess/mess.mak
r8099r8100
16581658   $(MESS_DRIVERS)/z80dev.o    \
16591659   $(MESS_DRIVERS)/pegasus.o    \
16601660   $(MESS_VIDEO)/pegasus.o    \
1661   $(MESS_DRIVERS)/e01.o       \
16611662   
16621663
16631664
src/mess/drivers/e01.c
r0r8100
1/***************************************************************************
2
3    Acorn AEH26 FileStore E01
4
5    20/05/2010 Skeleton driver.
6
7   http://acorn.chriswhy.co.uk/Network/Econet.html
8   http://acorn.chriswhy.co.uk/Network/Pics/Acorn_FileStoreE01.html
9   http://acorn.chriswhy.co.uk/8bit_Upgrades/Acorn_FileStoreE01S.html
10   http://www.heyrick.co.uk/econet/fs/emulator.html
11
12****************************************************************************/
13
14/*
15
16   The FileStore E01 is an Econet station in its own right which acts as a fileserver when connected to a network. It is a single unit
17   which does not require a monitor or keyboard. Communication with the FileStore is done via another Econet station when the FileStore
18   is in one of two "maintenance modes"
19
20   The E01 can be seen as a slimmed-down BBC computer tailored for its function as a fileserver. It has a 6502 processor at its heart
21   along with a 6522 VIA just like the BBC. It requires a Master series Econet module to be plugged in and connects to the network via
22   an Econet port in the same way as any other station.
23
24   The FileStore E01S was Acorns second generation Filestore replacing the FileStore E01. The FileStore is a dedicated Econet fileserver,
25   it does not support a keyboard and monitor, instead you use an Econet attached station to logon and perform administrative tasks.
26
27         Hitachi HD146818P Real Time Clock
28         Rockwell R65C102P3 CPU
29         2 x TMM27256D-20 white labelled EPROMs, TMSE01 MOS on left and E01 FS on the right
30   IC20   WD2793-APL-02 floppy disc controller
31         2 x NEC D41464C-12 64k x 4bit NMOS RAM ICs giving 64K memory
32   IC21   Rockwell RC6522AP VIA behind to the right
33
34*/
35
36#include "emu.h"
37#include "includes/e01.h"
38#include "cpu/m6502/m6502.h"
39#include "devices/flopdrv.h"
40#include "devices/messram.h"
41#include "machine/ctronics.h"
42#include "machine/6522via.h"
43#include "machine/mc146818.h"
44#include "machine/wd17xx.h"
45
46/***************************************************************************
47    READ/WRITE HANDLERS
48***************************************************************************/
49
50/*-------------------------------------------------
51     eprom_r - ROM/RAM select read
52-------------------------------------------------*/
53
54static READ8_HANDLER( ram_select_r )
55{
56   memory_set_bank(space->machine, "bank1", 0);
57   memory_set_bank(space->machine, "bank3", 0);
58
59   return 0;
60}
61
62/*-------------------------------------------------
63     floppy_w - floppy control write
64-------------------------------------------------*/
65
66static WRITE8_DEVICE_HANDLER( floppy_w )
67{
68   /*
69     
70      bit      description
71
72      0      floppy 1 select
73      1      floppy 2 select
74      2      floppy side select
75      3      NVRAM select
76      4      floppy density
77      5      floppy master reset
78      6      floppy test
79      7      mode LED
80
81   */
82
83   /* floppy 1 select */
84   if (!BIT(data, 0))
85   {
86      wd17xx_set_drive(device, 0);
87   }
88
89   /* floppy 2 select */
90   if (!BIT(data, 1))
91   {
92      wd17xx_set_drive(device, 1);
93   }
94
95   /* floppy side select */
96   wd17xx_set_side(device, BIT(data, 2));
97
98   /* TODO NVRAM select */
99
100   /* floppy density */
101   wd17xx_dden_w(device, BIT(data, 4));
102
103   /* floppy master reset */
104   wd17xx_mr_w(device, BIT(data, 5));
105
106   /* TODO floppy test */
107   //wd17xx_test_w(device, BIT(data, 6));
108
109   /* TODO mode LED */
110}
111
112/***************************************************************************
113    MEMORY MAPS
114***************************************************************************/
115
116/*-------------------------------------------------
117    ADDRESS_MAP( e01_mem )
118-------------------------------------------------*/
119
120static ADDRESS_MAP_START( e01_mem, ADDRESS_SPACE_PROGRAM, 8 )
121   AM_RANGE(0x0000, 0xfbff) AM_READ_BANK("bank1") AM_WRITE_BANK("bank2")
122//   AM_RANGE(0xfc00, 0xfc00) AM_MIRROR(0x00c3) RTC address
123//   AM_RANGE(0xfc04, 0xfc04) AM_MIRROR(0x00c3) RTC data
124   AM_RANGE(0xfc08, 0xfc08) AM_MIRROR(0x00c0) AM_READ(ram_select_r) AM_DEVWRITE(WD2793_TAG, floppy_w)
125   AM_RANGE(0xfc0c, 0xfc0f) AM_MIRROR(0x00c0) AM_DEVREADWRITE(WD2793_TAG, wd17xx_r, wd17xx_w)
126   AM_RANGE(0xfc10, 0xfc1f) AM_MIRROR(0x00c0) AM_DEVREADWRITE(R6522_TAG, via_r, via_w)
127//   AM_RANGE(0xfc20, 0xfc23) AM_MIRROR(0x00c0) AM_DEVREADWRITE(MC6854_TAG, mc6854_r, mc6854_w)
128//   AM_RANGE(0xfc24, 0xfc24) AM_MIRROR(0x00c3) network interrupt disable
129//   AM_RANGE(0xfc28, 0xfc24) AM_MIRROR(0x00c3) network interrupt enable
130//   AM_RANGE(0xfc2c, 0xfc2c) AM_MIRROR(0x00c3) front flap status, SW3
131//   AM_RANGE(0xfc30, 0xfc30) AM_MIRROR(0x00c0) HD data
132//   AM_RANGE(0xfc31, 0xfc31) AM_MIRROR(0x00c0) HD status
133//   AM_RANGE(0xfc32, 0xfc32) AM_MIRROR(0x00c0) HD select
134//   AM_RANGE(0xfc33, 0xfc33) AM_MIRROR(0x00c0) HD interrupt enable
135   AM_RANGE(0xfd00, 0xffff) AM_READ_BANK("bank3") AM_WRITE_BANK("bank4")
136ADDRESS_MAP_END
137
138/***************************************************************************
139    INPUT PORTS
140***************************************************************************/
141
142/*-------------------------------------------------
143    INPUT_PORTS( e01 )
144-------------------------------------------------*/
145
146static INPUT_PORTS_START( e01 )
147INPUT_PORTS_END
148
149/***************************************************************************
150    DEVICE CONFIGURATION
151***************************************************************************/
152
153/*-------------------------------------------------
154    via6522_interface via_intf
155-------------------------------------------------*/
156
157static const via6522_interface via_intf =
158{
159   DEVCB_NULL,
160   DEVCB_NULL,
161   DEVCB_NULL,
162   DEVCB_NULL,
163   DEVCB_NULL,
164   DEVCB_NULL,
165   DEVCB_NULL,
166   DEVCB_NULL,
167   DEVCB_NULL,
168   DEVCB_NULL,
169   DEVCB_NULL,
170   DEVCB_NULL,
171   DEVCB_NULL
172};
173
174/*-------------------------------------------------
175    floppy_config e01_floppy_config
176-------------------------------------------------*/
177
178static const floppy_config e01_floppy_config =
179{
180   DEVCB_NULL,
181   DEVCB_NULL,
182   DEVCB_NULL,
183   DEVCB_NULL,
184   DEVCB_NULL,
185   FLOPPY_DRIVE_DS_80,
186   FLOPPY_OPTIONS_NAME(default),
187   DO_NOT_KEEP_GEOMETRY
188};
189
190/*-------------------------------------------------
191    wd17xx_interface fdc_intf
192-------------------------------------------------*/
193
194static const wd17xx_interface fdc_intf =
195{
196   DEVCB_NULL,
197   DEVCB_NULL,
198   DEVCB_NULL,
199   { FLOPPY_0, FLOPPY_1, NULL, NULL }
200};
201
202/***************************************************************************
203    MACHINE INITIALIZATION
204***************************************************************************/
205
206/*-------------------------------------------------
207    MACHINE_START( e01 )
208-------------------------------------------------*/
209
210static MACHINE_START( e01 )
211{
212   UINT8 *ram = messram_get_ptr(devtag_get_device(machine, "messram"));
213   UINT8 *rom = memory_region(machine, R65C102_TAG);
214
215   /* setup memory banking */
216   memory_configure_bank(machine, "bank1", 0, 1, ram, 0);
217   memory_configure_bank(machine, "bank1", 1, 1, rom, 0);
218   memory_set_bank(machine, "bank1", 1);
219
220   memory_configure_bank(machine, "bank2", 0, 1, ram, 0);
221   memory_set_bank(machine, "bank2", 0);
222
223   memory_configure_bank(machine, "bank3", 0, 1, ram + 0xfd00, 0);
224   memory_configure_bank(machine, "bank3", 1, 1, rom + 0xfd00, 0);
225   memory_set_bank(machine, "bank3", 1);
226
227   memory_configure_bank(machine, "bank4", 0, 1, ram + 0xfd00, 0);
228   memory_set_bank(machine, "bank4", 0);
229}
230
231/*-------------------------------------------------
232    MACHINE_RESET( e01 )
233-------------------------------------------------*/
234
235static MACHINE_RESET( e01 )
236{
237   memory_set_bank(machine, "bank1", 1);
238   memory_set_bank(machine, "bank3", 1);
239}
240
241/***************************************************************************
242    MACHINE DRIVERS
243***************************************************************************/
244
245/*-------------------------------------------------
246    MACHINE_DRIVER( e01 )
247-------------------------------------------------*/
248
249static MACHINE_DRIVER_START( e01 )
250    /* basic machine hardware */
251   MDRV_CPU_ADD(R65C102_TAG, M65C02, 1000000) // Rockwell R65C102P3
252    MDRV_CPU_PROGRAM_MAP(e01_mem)
253
254    MDRV_MACHINE_START(e01)
255    MDRV_MACHINE_RESET(e01)
256
257   /* video hardware */
258   MDRV_SCREEN_ADD("screen", RASTER)
259   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
260   MDRV_SCREEN_REFRESH_RATE(60)
261   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
262   MDRV_SCREEN_SIZE(640, 400)
263   MDRV_SCREEN_VISIBLE_AREA(0,640-1, 0, 400-1)
264   MDRV_PALETTE_LENGTH(2)
265   MDRV_PALETTE_INIT(black_and_white)
266   MDRV_VIDEO_START(generic_bitmapped)
267   MDRV_VIDEO_UPDATE(generic_bitmapped)
268
269   /* devices */
270   MDRV_VIA6522_ADD(R6522_TAG, 100000, via_intf)
271   MDRV_WD2793_ADD(WD2793_TAG, fdc_intf)
272   MDRV_FLOPPY_2_DRIVES_ADD(e01_floppy_config)
273//   MDRV_CENTRONICS_ADD(CENTRONICS_TAG, e01_centronics_config)
274
275   /* internal ram */
276   MDRV_RAM_ADD("messram")
277   MDRV_RAM_DEFAULT_SIZE("64K")
278MACHINE_DRIVER_END
279
280/***************************************************************************
281    ROMS
282***************************************************************************/
283
284/*-------------------------------------------------
285    ROM( e01 )
286-------------------------------------------------*/
287
288ROM_START( e01 )
289    ROM_REGION( 0x10000, R65C102_TAG, 0 )
290   ROM_DEFAULT_BIOS("v131")
291   ROM_SYSTEM_BIOS( 0, "v131", "V 1.31" )
292   ROMX_LOAD( "0254,205-04 e01 fs",  0x0000, 0x8000, CRC(ae666c76) SHA1(0954119eb5cd09cdbadf76d60d812aa845838d5a), ROM_BIOS(1) )
293   ROMX_LOAD( "0254,205-03 e01 mos", 0x8000, 0x8000, CRC(a13e8014) SHA1(6f44a1a48108c60a64a1774cb30c1a59c4a6a199), ROM_BIOS(1) )
294ROM_END
295
296/*-------------------------------------------------
297    ROM( e01s )
298-------------------------------------------------*/
299
300ROM_START( e01s )
301    ROM_REGION( 0x10000, R65C102_TAG, 0 )
302   ROM_DEFAULT_BIOS("v140")
303   ROM_SYSTEM_BIOS( 0, "v133", "V 1.33" )
304   ROMX_LOAD( "0282,008-xx e01s rom",  0x0000, 0x10000, CRC(2a4a0032) SHA1(54ad68ceae44992293ccdd64ec88ad8520deec22), ROM_BIOS(1) ) // which label?
305   ROM_SYSTEM_BIOS( 1, "v140", "V 1.40" )
306   ROMX_LOAD( "0282,008-xx e01s rom",  0x0000, 0x10000, CRC(5068fe86) SHA1(9b8740face15b5541e2375b3054988af00757931), ROM_BIOS(2) ) // which label?
307ROM_END
308
309/***************************************************************************
310    SYSTEM DRIVERS
311***************************************************************************/
312
313/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT      COMPANY   FULLNAME */
314COMP( 1988, e01,  0,       0,   e01,   e01,    0,  "Acorn",   "FileStore E01",      GAME_NOT_WORKING | GAME_NO_SOUND)
315COMP( 1988, e01s, e01,       0,   e01,   e01,    0,  "Acorn",   "FileStore E01S",      GAME_NOT_WORKING | GAME_NO_SOUND)
docs/messnew.txt
r8099r8100
1515
1616Skeleton drivers:
1717-----------------
18- Acorn FileStore E01/E01S [Curt Coder]
1819- Alesis HR-16,HR-16B and SR-16 drum machines
1920- Central Data 2650
2021- Chaos 2
r8099r8100
4445- [AQUARIUS] Replaced bad char ROM with the newly redumped one.
4546  [jaybird3rd, Dirk Best]
4647
47- [ATOM] Fixed disk loading [Curt Coder]
48- [ATOM] Fixed disk loading. [Curt Coder]
4849
4950- [ChannelF] Added .hsi file with hashes from GoodChaF V3.1415 [Cowering]
5051

Previous 15994 Revisions Next


© 1998-2018 The MESS Team