Previous 15994 Revisions Next

r2500 Monday 28th April, 2008 at 23:38:42 UTC by Barry Rodewald
[HD63450] Removed use of deprecat.h
[src/mess/machine]hd63450.c hd63450.h

src/mess/machine/hd63450.c
r2499r2500
55*/
66
77#include "machine/hd63450.h"
8#include "deprecat.h"
98
109
1110static struct hd63450 dmac;
r2499r2500
2928   }
3029}
3130
32int hd63450_read(int offset, UINT16 mem_mask)
31int hd63450_read(running_machine *machine, int offset, UINT16 mem_mask)
3332{
3433   int channel,reg;
3534
r2499r2500
7877   return 0xff;
7978}
8079
81void hd63450_write(int offset, int data, UINT16 mem_mask)
80void hd63450_write(running_machine *machine, int offset, int data, UINT16 mem_mask)
8281{
8382   int channel,reg;
8483
r2499r2500
116115      {
117116         dmac.reg[channel].ccr = data & 0x00ff;
118117         if((data & 0x0080))// && !dmac.intf->dma_read[channel] && !dmac.intf->dma_write[channel])
119            dma_transfer_start(Machine, channel,0);
118            dma_transfer_start(machine, channel,0);
120119         if(data & 0x0010)  // software abort
121120            dma_transfer_abort(channel);
122121         if(data & 0x0020)  // halt operation
r2499r2500
388387}
389388
390389
391READ16_HANDLER(hd63450_r) { return hd63450_read(offset,mem_mask); }
392WRITE16_HANDLER(hd63450_w) { hd63450_write(offset,data,mem_mask); }
390READ16_HANDLER(hd63450_r) { return hd63450_read(machine,offset,mem_mask); }
391WRITE16_HANDLER(hd63450_w) { hd63450_write(machine,offset,data,mem_mask); }
393392
src/mess/machine/hd63450.h
r2499r2500
4646};
4747
4848void hd63450_init(const struct hd63450_interface* intf);
49int hd63450_read(int offset, UINT16 mem_mask);
50void hd63450_write(int offset, int data, UINT16 mem_mask);
49int hd63450_read(running_machine *machine, int offset, UINT16 mem_mask);
50void hd63450_write(running_machine *machine,int offset, int data, UINT16 mem_mask);
5151void hd63450_single_transfer(running_machine *machine, int x);
5252
5353void dma_transfer_start(running_machine *machine, int channel, int dir);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team