Previous 15994 Revisions Next

r1447 Friday 28th December, 2007 at 20:08:19 UTC by Nathan Woods
Removed a legacy construct. [Atari Ace]
[docs]messnew.txt
[src/mess]mslegacy.h
[src/mess/drivers]x68k.c
[src/mess/machine]hd63450.c hd63450.h

src/mess/mslegacy.h
r1446r1447
1010#ifndef MSLEGACY_H
1111#define MSLEGACY_H
1212
13#define TIME_IN_USEC(us)      ((double)(us) * (1.0 / 1000000.0))
14
1513INLINE void palette_set_colors_rgb(running_machine *machine, pen_t color_base, const UINT8 *colors, int color_count)
1614{
1715   while (color_count--)
src/mess/machine/hd63450.c
r1446r1447
205205   if((dmac.reg[channel].dcr & 0xc0) == 0x00)  // Burst transfer
206206   {
207207      cpunum_set_input_line(dmac.intf->cpu,INPUT_LINE_HALT,ASSERT_LINE);
208      timer_adjust(dmac.timer[channel],attotime_zero,channel, double_to_attotime(dmac.intf->burst_clock[channel]));
208      timer_adjust(dmac.timer[channel],attotime_zero,channel, dmac.intf->burst_clock[channel]);
209209   }
210210   else
211      timer_adjust(dmac.timer[channel],ATTOTIME_IN_USEC(500),channel, double_to_attotime(dmac.intf->clock[channel]));
211      timer_adjust(dmac.timer[channel],ATTOTIME_IN_USEC(500),channel, dmac.intf->clock[channel]);
212212
213213
214214   dmac.transfer_size[channel] = dmac.reg[channel].mtc;
r1446r1447
242242   if(dmac.halted[channel] != 0)
243243   {
244244      dmac.halted[channel] = 0;
245      timer_adjust(dmac.timer[channel],attotime_zero,channel, double_to_attotime(dmac.intf->clock[channel]));
245      timer_adjust(dmac.timer[channel],attotime_zero,channel, dmac.intf->clock[channel]);
246246   }
247247}
248248
src/mess/machine/hd63450.h
r1446r1447
77struct hd63450_interface
88{
99   int cpu;
10   double clock[4];
11   double burst_clock[4];
10   attotime clock[4];
11   attotime burst_clock[4];
1212   void (*dma_end)(int channel,int irq);  // called when the DMA transfer ends
1313   void (*dma_error)(int channel, int irq);  // called when a DMA transfer error occurs
1414   int (*dma_read[4])(int addr);  // special read / write handlers for each channel
src/mess/drivers/x68k.c
r1446r1447
138138#include "machine/rp5c15.h"
139139#include "devices/basicdsk.h"
140140#include "includes/x68k.h"
141#include "mslegacy.h"
142141
143142struct x68k_system sys;
144143
r1446r1447
15381537static const struct hd63450_interface dmac_interface =
15391538{
15401539   0,  // CPU - 68000
1541   {TIME_IN_USEC(32),TIME_IN_USEC(32),TIME_IN_USEC(4),TIME_IN_USEC(32)},  // Cycle steal mode timing (guesstimate)
1542   {TIME_IN_USEC(32),TIME_IN_USEC(50)/1000,TIME_IN_USEC(50)/1000,TIME_IN_USEC(50)/1000}, // Burst mode timing (guesstimate)
1540   {STATIC_ATTOTIME_IN_USEC(32),STATIC_ATTOTIME_IN_USEC(32),STATIC_ATTOTIME_IN_USEC(4),STATIC_ATTOTIME_IN_USEC(32)},  // Cycle steal mode timing (guesstimate)
1541   {STATIC_ATTOTIME_IN_USEC(32),STATIC_ATTOTIME_IN_NSEC(50),STATIC_ATTOTIME_IN_NSEC(50),STATIC_ATTOTIME_IN_NSEC(50)}, // Burst mode timing (guesstimate)
15431542   x68k_dma_end,
15441543   x68k_dma_error,
15451544   { x68k_fdc_read_byte, 0, 0, 0 },
docs/messnew.txt
r1446r1447
7373
7474- Fixed M65C02 optimization.  [Peter Trauner]
7575
76- Staticization, constification, header file, "Machine variable" and gfxdecode
77  cleanups.  [Atari Ace]
76- Staticization, constification, header file, "Machine variable", gfxdecode and
77  legacy cleanups.  [Atari Ace]
7878
7979
8080

Previous 15994 Revisions Next


© 1998-2018 The MESS Team