Previous 15994 Revisions Next

r9958 Friday 7th January, 2011 at 23:05:17 UTC by Curt Coder
[ST] Fixed floppy reading. At least "Buggy Boy" and "First Age" demo load.
[docs]messnew.txt
[src/mess/drivers]atarist.c
[src/mess/formats]atarist_dsk.c
[src/mess/includes]atarist.h

src/mess/includes/atarist.h
r9957r9958
2828#define Y200   XTAL_2_4576MHz
2929#define Y700   XTAL_10MHz
3030
31#define ATARIST_FLOPPY_STATUS_FDC_DATA_REQUEST   0x04
32#define ATARIST_FLOPPY_STATUS_SECTOR_COUNT_ZERO   0x02
33#define ATARIST_FLOPPY_STATUS_DMA_ERROR         0x01
31#define DMA_STATUS_DRQ            0x04
32#define DMA_STATUS_SECTOR_COUNT      0x02
33#define DMA_STATUS_ERROR         0x01
3434
35#define ATARIST_FLOPPY_MODE_WRITE            0x0100
36#define ATARIST_FLOPPY_MODE_FDC_ACCESS         0x0080
37#define ATARIST_FLOPPY_MODE_DMA_DISABLE         0x0040
38#define ATARIST_FLOPPY_MODE_SECTOR_COUNT      0x0010
39#define ATARIST_FLOPPY_MODE_HDC               0x0008
40#define ATARIST_FLOPPY_MODE_ADDRESS_MASK      0x0006
35#define DMA_MODE_READ_WRITE         0x100
36#define DMA_MODE_FDC_HDC_ACK      0x080
37#define DMA_MODE_ENABLED         0x040
38#define DMA_MODE_SECTOR_COUNT      0x010
39#define DMA_MODE_FDC_HDC_CS         0x008
40#define DMA_MODE_A1               0x004
41#define DMA_MODE_A0               0x002
42#define DMA_MODE_ADDRESS_MASK      0x006
4143
42#define ATARIST_FLOPPY_BYTES_PER_SECTOR         512
44#define DMA_SECTOR_SIZE            512
4345
4446enum
4547{
r9957r9958
7678   UINT16 fdc_status;
7779   UINT16 fdc_mode;
7880   UINT8 fdc_sectors;
81   UINT16 fdc_fifo[2][8];
82   int fdc_fifo_sel;
83   int fdc_fifo_index;
84   int fdc_fifo_msb;
85   int fdc_fifo_empty[2];
7986   int fdc_dmabytes;
8087   int fdc_irq;
8188
src/mess/formats/atarist_dsk.c
r9957r9958
2020*/
2121
2222/***************************************************************************
23    CONSTANTS / MACROS
24***************************************************************************/
25
26#define LOG 0
27
28/***************************************************************************
2329    IMPLEMENTATION
2430***************************************************************************/
2531
r9957r9958
5965   geometry.tracks = tracks;
6066   geometry.sectors = sectors;
6167
68   if (LOG) logerror("ST Heads %u Tracks %u Sectors %u\n", heads, tracks, sectors);
69
6270   return basicdsk_construct(floppy, &geometry);
6371}
6472
src/mess/drivers/atarist.c
r9957r9958
3737
3838*/
3939
40#define LOG 0
41
4042/* Floppy Disk Controller */
4143
42static void atarist_fdc_dma_transfer(running_machine *machine)
44static void toggle_dma_fifo(running_machine *machine)
4345{
46   atarist_state *state = machine->driver_data<atarist_state>();
47
48   if (LOG) logerror("Toggling DMA FIFO\n");
49
50   state->fdc_fifo_sel = !state->fdc_fifo_sel;
51   state->fdc_fifo_index = 0;
52}
53
54static void flush_dma_fifo(running_machine *machine)
55{
4456   address_space *program = cputag_get_address_space(machine, M68000_TAG, ADDRESS_SPACE_PROGRAM);
4557   atarist_state *state = machine->driver_data<atarist_state>();
4658
47   if ((state->fdc_mode & ATARIST_FLOPPY_MODE_DMA_DISABLE) == 0)
59   if (state->fdc_fifo_empty[state->fdc_fifo_sel]) return;
60
61   for (int i = 0; i < 8; i++)
4862   {
49      while (state->fdc_sectors > 0)
63      UINT16 data = state->fdc_fifo[state->fdc_fifo_sel][i];
64     
65      if (LOG) logerror("Flushing DMA FIFO %u data %04x to address %06x\n", state->fdc_fifo_sel, data, state->fdc_dmabase);
66
67      program->write_word(state->fdc_dmabase, data);
68      state->fdc_dmabase += 2;
69   }
70
71   state->fdc_fifo_empty[state->fdc_fifo_sel] = 1;
72}
73
74static void fill_dma_fifo(running_machine *machine)
75{
76   address_space *program = cputag_get_address_space(machine, M68000_TAG, ADDRESS_SPACE_PROGRAM);
77   atarist_state *state = machine->driver_data<atarist_state>();
78
79   for (int i = 0; i < 8; i++)
80   {
81      UINT16 data = program->read_word(state->fdc_dmabase);
82
83      if (LOG) logerror("Filling DMA FIFO %u with data %04x from memory address %06x\n", state->fdc_fifo_sel, data, state->fdc_dmabase);
84
85      state->fdc_fifo[state->fdc_fifo_sel][i] = data;
86      state->fdc_dmabase += 2;
87   }
88
89   state->fdc_fifo_empty[state->fdc_fifo_sel] = 0;
90}
91
92static void atarist_fdc_dma_transfer(running_machine *machine)
93{
94   atarist_state *state = machine->driver_data<atarist_state>();
95
96   if (!state->fdc_dmabytes) return;
97
98   if (state->fdc_mode & DMA_MODE_READ_WRITE)
99   {
100      UINT16 data = state->fdc_fifo[state->fdc_fifo_sel][state->fdc_fifo_index];
101
102      if (state->fdc_fifo_msb)
50103      {
51         if (state->fdc_mode & ATARIST_FLOPPY_MODE_WRITE)
52         {
53            UINT8 data = program->read_byte(state->fdc_dmabase);
104         // write LSB to disk
105         wd17xx_data_w(state->wd1772, 0, data & 0xff);
106         
107         if (LOG) logerror("DMA Write to FDC %02x\n", data & 0xff);
54108
55            wd17xx_data_w(state->wd1772, 0, data);
56         }
57         else
58         {
59            UINT8 data = wd17xx_data_r(state->wd1772, 0);
109         state->fdc_fifo_index++;
110      }
111      else
112      {
113         // write MSB to disk
114         wd17xx_data_w(state->wd1772, 0, data >> 8);
60115
61            program->write_byte(state->fdc_dmabase, data);
62         }
116         if (LOG) logerror("DMA Write to FDC %02x\n", data >> 8);
117      }
63118
64         state->fdc_dmabase++;
65         state->fdc_dmabytes--;
119      // toggle MSB/LSB
120      state->fdc_fifo_msb = !state->fdc_fifo_msb;
66121
67         if (state->fdc_dmabytes == 0)
122      if (state->fdc_fifo_index == 8)
123      {
124         state->fdc_fifo_index--;
125         state->fdc_fifo_empty[state->fdc_fifo_sel] = 1;
126
127         toggle_dma_fifo(machine);
128
129         if (state->fdc_fifo_empty[state->fdc_fifo_sel])
68130         {
69            state->fdc_sectors--;
70
71            if (state->fdc_sectors == 0)
72            {
73               state->fdc_status &= ~ATARIST_FLOPPY_STATUS_SECTOR_COUNT_ZERO;
74            }
75            else
76            {
77               state->fdc_dmabytes = ATARIST_FLOPPY_BYTES_PER_SECTOR;
78            }
131            fill_dma_fifo(machine);
79132         }
80133      }
81134   }
135   else
136   {
137      // read from controller to FIFO
138      UINT8 data = wd17xx_data_r(state->wd1772, 0);
139
140      state->fdc_fifo_empty[state->fdc_fifo_sel] = 0;
141         
142      if (LOG) logerror("DMA Read from FDC %02x\n", data);
143
144      if (state->fdc_fifo_msb)
145      {
146         // write MSB to FIFO
147         state->fdc_fifo[state->fdc_fifo_sel][state->fdc_fifo_index] |= data;
148         state->fdc_fifo_index++;
149      }
150      else
151      {
152         // write LSB to FIFO
153         state->fdc_fifo[state->fdc_fifo_sel][state->fdc_fifo_index] = data << 8;
154      }
155
156      // toggle MSB/LSB
157      state->fdc_fifo_msb = !state->fdc_fifo_msb;
158
159      if (state->fdc_fifo_index == 8)
160      {
161         flush_dma_fifo(machine);
162         toggle_dma_fifo(machine);
163      }
164   }
165
166   state->fdc_dmabytes--;
167
168   if (state->fdc_dmabytes == 0)
169   {
170      state->fdc_sectors--;
171
172      if (state->fdc_sectors)
173      {
174         state->fdc_dmabytes = DMA_SECTOR_SIZE;
175      }
176   }
82177}
83178
84179static WRITE_LINE_DEVICE_HANDLER( atarist_fdc_intrq_w )
85180{
86181   atarist_state *driver_state = device->machine->driver_data<atarist_state>();
87
88   driver_state->fdc_irq = state;
182   
183   driver_state->fdc_irq = !state;
89184}
90185
91186static WRITE_LINE_DEVICE_HANDLER( atarist_fdc_drq_w )
92187{
93188   atarist_state *driver_state = device->machine->driver_data<atarist_state>();
94189
95   if (state)
190   if (state && (!(driver_state->fdc_mode & DMA_MODE_ENABLED)) && (driver_state->fdc_mode & DMA_MODE_FDC_HDC_ACK))
96191   {
97      driver_state->fdc_status |= ATARIST_FLOPPY_STATUS_FDC_DATA_REQUEST;
98192      atarist_fdc_dma_transfer(device->machine);
99193   }
100   else
101   {
102      driver_state->fdc_status &= ~ATARIST_FLOPPY_STATUS_FDC_DATA_REQUEST;
103   }
104194}
105195
106196static const wd17xx_interface fdc_intf =
r9957r9958
123213{
124214   atarist_state *state = space->machine->driver_data<atarist_state>();
125215
126   if (state->fdc_mode & ATARIST_FLOPPY_MODE_SECTOR_COUNT)
216   UINT8 data = 0;
217
218   if (state->fdc_mode & DMA_MODE_SECTOR_COUNT)
127219   {
128      return state->fdc_sectors;
220      if (LOG) logerror("Indeterminate DMA Sector Count Read!\n");
221
222      // sector count register is write only, reading it returns unpredictable values
223      data = space->machine->rand() & 0xff;
129224   }
130225   else
131226   {
132      if (state->fdc_mode & ATARIST_FLOPPY_MODE_HDC)
227      if (!(state->fdc_mode & DMA_MODE_FDC_HDC_CS))
133228      {
134         // HDC not implemented
135         state->fdc_status &= ~ATARIST_FLOPPY_STATUS_DMA_ERROR;
229         // floppy controller
230         int offset = (state->fdc_mode & DMA_MODE_ADDRESS_MASK) >> 1;
136231
137         return 0;
232         data = wd17xx_r(state->wd1772, offset);
233
234         if (LOG) logerror("FDC Register %u Read %02x\n", offset, data);
138235      }
139      else
140      {
141         return wd17xx_r(state->wd1772, (state->fdc_mode & ATARIST_FLOPPY_MODE_ADDRESS_MASK) >> 1);
142      }
143236   }
237
238   return data;
144239}
145240
146241static WRITE16_HANDLER( atarist_fdc_data_w )
147242{
148243   atarist_state *state = space->machine->driver_data<atarist_state>();
149244
150   if (state->fdc_mode & ATARIST_FLOPPY_MODE_SECTOR_COUNT)
245   if (state->fdc_mode & DMA_MODE_SECTOR_COUNT)
151246   {
152      if (data == 0)
247      if (LOG) logerror("DMA Sector Count %u\n", data);
248
249      // sector count register
250      state->fdc_sectors = data;
251   
252      if (state->fdc_sectors)
153253      {
154         state->fdc_status &= ~ATARIST_FLOPPY_STATUS_SECTOR_COUNT_ZERO;
254         state->fdc_dmabytes = DMA_SECTOR_SIZE;
155255      }
156      else
256
257      if (state->fdc_mode & DMA_MODE_READ_WRITE)
157258      {
158         state->fdc_status |= ATARIST_FLOPPY_STATUS_SECTOR_COUNT_ZERO;
259         // fill both FIFOs with data
260         fill_dma_fifo(space->machine);
261         toggle_dma_fifo(space->machine);
262         fill_dma_fifo(space->machine);
263         toggle_dma_fifo(space->machine);
159264      }
160
161      state->fdc_sectors = data;
162265   }
163266   else
164267   {
165      if (state->fdc_mode & ATARIST_FLOPPY_MODE_HDC)
268      if (!(state->fdc_mode & DMA_MODE_FDC_HDC_CS))
166269      {
167         // HDC not implemented
168         state->fdc_status &= ~ATARIST_FLOPPY_STATUS_DMA_ERROR;
270         // floppy controller
271         int offset = (state->fdc_mode & DMA_MODE_ADDRESS_MASK) >> 1;
272
273         if (LOG) logerror("FDC Register %u Write %02x\n", offset, data);
274
275         wd17xx_w(state->wd1772, offset, data);
169276      }
170      else
171      {
172         wd17xx_w(state->wd1772, (state->fdc_mode & ATARIST_FLOPPY_MODE_ADDRESS_MASK) >> 1, data);
173      }
174277   }
175278}
176279
r9957r9958
178281{
179282   atarist_state *state = space->machine->driver_data<atarist_state>();
180283
181   return state->fdc_status;
284   UINT16 data = 0;
285
286   // DMA error
287   data |= 1;
288
289   // sector count null
290   data |= !(state->fdc_sectors == 0) << 1;
291
292   // DRQ state
293   data |= wd17xx_drq_r(state->wd1772) << 2;
294
295   return data;
182296}
183297
184298static WRITE16_HANDLER( atarist_fdc_dma_mode_w )
185299{
186300   atarist_state *state = space->machine->driver_data<atarist_state>();
187301
188   if ((data & ATARIST_FLOPPY_MODE_WRITE) != (state->fdc_mode & ATARIST_FLOPPY_MODE_WRITE))
302   if (LOG) logerror("DMA Mode %04x\n", data);
303
304   if ((data & DMA_MODE_READ_WRITE) != (state->fdc_mode & DMA_MODE_READ_WRITE))
189305   {
306      if (LOG) logerror("DMA reset\n");
307
308      flush_dma_fifo(space->machine);
309
190310      state->fdc_status = 0;
191311      state->fdc_sectors = 0;
312      state->fdc_fifo_sel = 0;
313      state->fdc_fifo_msb = 0;
192314   }
193315
194316   state->fdc_mode = data;
195317}
196318
197static READ16_HANDLER( atarist_fdc_dma_base_r )
319static READ8_HANDLER( atarist_fdc_dma_base_r )
198320{
199321   atarist_state *state = space->machine->driver_data<atarist_state>();
200322
323   UINT8 data = 0;
324
201325   switch (offset)
202326   {
203327   case 0:
204      return (state->fdc_dmabase >> 16) & 0xff;
328      data = (state->fdc_dmabase >> 16) & 0xff;
329
205330   case 1:
206      return (state->fdc_dmabase >> 8) & 0xff;
331      data = (state->fdc_dmabase >> 8) & 0xff;
332
207333   case 2:
208      return state->fdc_dmabase & 0xff;
334      data = state->fdc_dmabase & 0xff;
209335   }
210336
211   return 0;
337   return data;
212338}
213339
214static WRITE16_HANDLER( atarist_fdc_dma_base_w )
340static WRITE8_HANDLER( atarist_fdc_dma_base_w )
215341{
216342   atarist_state *state = space->machine->driver_data<atarist_state>();
217343
218344   switch (offset)
219345   {
220346   case 0:
221      state->fdc_dmabase = (state->fdc_dmabase & 0x00ffff) | ((data & 0xff) << 16);
347      state->fdc_dmabase = (state->fdc_dmabase & 0x00ffff) | (data << 16);
348      if (LOG) logerror("DMA Address High %02x (%06x)\n", data & 0xff, state->fdc_dmabase);
222349      break;
350
223351   case 1:
224      state->fdc_dmabase = (state->fdc_dmabase & 0x0000ff) | ((data & 0xff) << 8);
352      state->fdc_dmabase = (state->fdc_dmabase & 0x0000ff) | (data << 8);
353      if (LOG) logerror("DMA Address Mid %02x (%06x)\n", data & 0xff, state->fdc_dmabase);
225354      break;
355
226356   case 2:
227357      state->fdc_dmabase = data & 0xff;
358      if (LOG) logerror("DMA Address Low %02x (%06x)\n", data & 0xff, state->fdc_dmabase);
228359      break;
229360   }
230
231   state->fdc_dmabytes = ATARIST_FLOPPY_BYTES_PER_SECTOR;
232361}
233362
234363/* MMU */
r9957r9958
501630
502631   if (state->dmasnd_ctrl & 0x80)
503632   {
504//      logerror("DMA sound left  %i\n", state->dmasnd_fifo[7 - state->dmasnd_samples]);
633//      if (LOG) logerror("DMA sound left  %i\n", state->dmasnd_fifo[7 - state->dmasnd_samples]);
505634      state->dmasnd_samples--;
506635
507//      logerror("DMA sound right %i\n", state->dmasnd_fifo[7 - state->dmasnd_samples]);
636//      if (LOG) logerror("DMA sound right %i\n", state->dmasnd_fifo[7 - state->dmasnd_samples]);
508637      state->dmasnd_samples--;
509638   }
510639   else
511640   {
512//      logerror("DMA sound mono %i\n", state->dmasnd_fifo[7 - state->dmasnd_samples]);
641//      if (LOG) logerror("DMA sound mono %i\n", state->dmasnd_fifo[7 - state->dmasnd_samples]);
513642      state->dmasnd_samples--;
514643   }
515644
r9957r9958
826955ADDRESS_MAP_END
827956
828957static ADDRESS_MAP_START( st_map, ADDRESS_SPACE_PROGRAM, 16 )
829   AM_RANGE(0x000000, 0x000007) AM_ROM AM_REGION(M68000_TAG, 0)
958   AM_RANGE(0x000000, 0x000007) AM_RAM
830959   AM_RANGE(0x000008, 0x1fffff) AM_RAM
831960   AM_RANGE(0x200000, 0x3fffff) AM_RAM
832961//   AM_RANGE(0xfa0000, 0xfbffff) AM_ROM // cartridge
r9957r9958
839968   AM_RANGE(0xff8260, 0xff8261) AM_READWRITE8(atarist_shifter_mode_r, atarist_shifter_mode_w, 0xff00)
840969   AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w)
841970   AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w)
842   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w)
971   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE8(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w, 0x00ff)
843972   AM_RANGE(0xff8800, 0xff8801) AM_DEVREADWRITE8(YM2149_TAG, ay8910_r, ay8910_data_w, 0xff00)
844973   AM_RANGE(0xff8802, 0xff8803) AM_DEVWRITE8(YM2149_TAG, ay8910_data_w, 0xff00)
845974   AM_RANGE(0xfffa00, 0xfffa2f) AM_DEVREADWRITE8(MC68901_TAG, mc68901_register_r, mc68901_register_w, 0xff)
r9957r9958
864993   AM_RANGE(0xff8260, 0xff8261) AM_READWRITE8(atarist_shifter_mode_r, atarist_shifter_mode_w, 0xff00)
865994   AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w)
866995   AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w)
867   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w)
996   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE8(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w, 0x00ff)
868997   AM_RANGE(0xff8800, 0xff8801) AM_DEVREADWRITE8(YM2149_TAG, ay8910_r, ay8910_data_w, 0xff00)
869998   AM_RANGE(0xff8802, 0xff8803) AM_DEVWRITE8(YM2149_TAG, ay8910_data_w, 0xff00)
870999   AM_RANGE(0xff8a00, 0xff8a1f) AM_READWRITE(atarist_blitter_halftone_r, atarist_blitter_halftone_w)
r9957r9958
9061035   AM_RANGE(0xff8264, 0xff8265) AM_READWRITE(atariste_shifter_pixelofs_r, atariste_shifter_pixelofs_w)
9071036   AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w)
9081037   AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w)
909   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w)
1038   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE8(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w, 0x00ff)
9101039   AM_RANGE(0xff8800, 0xff8801) AM_DEVREADWRITE8(YM2149_TAG, ay8910_r, ay8910_data_w, 0xff00)
9111040   AM_RANGE(0xff8802, 0xff8803) AM_DEVWRITE8(YM2149_TAG, ay8910_data_w, 0xff00)
9121041   AM_RANGE(0xff8900, 0xff8901) AM_READWRITE(atariste_sound_dma_control_r, atariste_sound_dma_control_w)
r9957r9958
9611090   AM_RANGE(0xff8264, 0xff8265) AM_READWRITE(atariste_shifter_pixelofs_r, atariste_shifter_pixelofs_w)
9621091   AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w)
9631092   AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w)
964   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w)
1093   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE8(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w, 0x00ff)
9651094   AM_RANGE(0xff8800, 0xff8801) AM_DEVREADWRITE8(YM2149_TAG, ay8910_r, ay8910_data_w, 0xff00)
9661095   AM_RANGE(0xff8802, 0xff8803) AM_DEVWRITE8(YM2149_TAG, ay8910_data_w, 0xff00)
9671096   AM_RANGE(0xff8900, 0xff8901) AM_READWRITE(atariste_sound_dma_control_r, atariste_sound_dma_control_w)
r9957r9958
10161145   AM_RANGE(0xff827e, 0xff827f) AM_WRITE(stbook_lcd_control_w)
10171146   AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w)
10181147   AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w)
1019   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w)
1148   AM_RANGE(0xff8608, 0xff860d) AM_READWRITE8(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w, 0x00ff)
10201149   AM_RANGE(0xff8800, 0xff8801) AM_DEVREADWRITE8(YM3439_TAG, ay8910_r, ay8910_data_w, 0xff00)
10211150   AM_RANGE(0xff8802, 0xff8803) AM_DEVWRITE8(YM3439_TAG, ay8910_data_w, 0xff00)
10221151   AM_RANGE(0xff8900, 0xff8901) AM_READWRITE(atariste_sound_dma_control_r, atariste_sound_dma_control_w)
r9957r9958
14971626{
14981627   atarist_state *state = machine->driver_data<atarist_state>();
14991628
1500   state->fdc_status |= ATARIST_FLOPPY_STATUS_DMA_ERROR;
1629   state->fdc_status |= DMA_STATUS_ERROR;
15011630
15021631   state_save_register_global(machine, state->mmu);
15031632   state_save_register_global(machine, state->fdc_dmabase);
r9957r9958
15371666
15381667   /* register for state saving */
15391668   atarist_state_save(machine);
1669
1670   address_space *program = cputag_get_address_space(machine, M68000_TAG, ADDRESS_SPACE_PROGRAM);
1671   program->write_word(0, 0x60ae);
1672   program->write_word(2, 0x0104);
1673   program->write_word(4, 0x00fc);
1674   program->write_word(6, 0x0030);
15401675}
15411676
15421677static const struct rp5c15_interface rtc_intf =
docs/messnew.txt
r9957r9958
137137  selecting the Segascope views from the Video Options menu). The option
138138  is turned off by default, being inaccurate [Enik Land, Fabio Priuli]
139139
140- [ST] Fixed floppy reading. At least "Buggy Boy" and "First Age" demo load.
141
140142- [SUPER80] Added a bios found in a scrapped machine. [Robbbert]
141143
142144- [SUPER80] Added printer support for the 'super80e' [Robbbert]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team